Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009502/0.0009503, allocations: 181.6 kB / 8.13 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.124/1.124, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000963/0.000963, allocations: 100.2 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09344/0.09446, allocations: 55.81 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.2744, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1055/0.3799, allocations: 110.9 MB / 497.9 MB, free: 7.797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.3802, allocations: 87.89 kB / 498 MB, free: 7.711 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.2978/0.6781, allocations: 72.48 MB / 0.5571 GB, free: 52.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.6781, allocations: 8 kB / 0.5571 GB, free: 52.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.6799, allocations: 499.7 kB / 0.5576 GB, free: 52.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00349/0.6834, allocations: 1.876 MB / 0.5594 GB, free: 50.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.216e-05/0.6835, allocations: 84 kB / 0.5595 GB, free: 50.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002843/0.6838, allocations: 167.8 kB / 0.5597 GB, free: 49.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002531/0.6863, allocations: 1.385 MB / 0.561 GB, free: 48.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.6895, allocations: 1.988 MB / 0.563 GB, free: 46.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-05/0.6895, allocations: 15.83 kB / 0.563 GB, free: 46.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001617/0.6897, allocations: 4 kB / 0.563 GB, free: 46.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/0.6898, allocations: 64 kB / 0.5631 GB, free: 46.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.7006, allocations: 10.28 MB / 0.5731 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/0.7011, allocations: 361.3 kB / 0.5734 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004356/0.7016, allocations: 339.7 kB / 0.5738 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.7016, allocations: 12.77 kB / 0.5738 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.7016, allocations: 51.28 kB / 0.5738 GB, free: 34.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.725e-06/0.7016, allocations: 0 / 0.5738 GB, free: 34.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.002909/0.7046, allocations: 2.06 MB / 0.5758 GB, free: 32.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.7046, allocations: 171 kB / 0.576 GB, free: 32.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.7063, allocations: 1.454 MB / 0.5774 GB, free: 30.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.7064, allocations: 25.7 kB / 0.5774 GB, free: 30.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/0.7068, allocations: 1.19 MB / 0.5786 GB, free: 29.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.7069, allocations: 319.4 kB / 0.5789 GB, free: 29.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.707, allocations: 0 / 0.5789 GB, free: 29.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.324e-05/0.707, allocations: 377.8 kB / 0.5793 GB, free: 29.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.7075, allocations: 296 kB / 0.5796 GB, free: 28.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006679/0.7081, allocations: 1.162 MB / 0.5807 GB, free: 27.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006379/0.7088, allocations: 0.5039 MB / 0.5812 GB, free: 26.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.7088, allocations: 12 kB / 0.5812 GB, free: 26.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002153/0.711, allocations: 1.516 MB / 0.5827 GB, free: 25.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001754/0.7127, allocations: 12.23 MB / 0.5946 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/0.7128, allocations: 32 kB / 0.5947 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005954/0.7134, allocations: 179.2 kB / 0.5948 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.7147, allocations: 423.2 kB / 0.5952 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.7176, allocations: 5.347 MB / 0.6005 GB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.7191, allocations: 63.88 kB / 0.6005 GB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.7193, allocations: 96 kB / 0.6006 GB, free: 5.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-06/0.7193, allocations: 4 kB / 0.6006 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001734/0.721, allocations: 1.279 MB / 0.6019 GB, free: 3.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.721, allocations: 32 kB / 0.6019 GB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004054/0.7215, allocations: 163.3 kB / 0.602 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.7225, allocations: 423.3 kB / 0.6024 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003235/0.7258, allocations: 5.337 MB / 0.6077 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.7272, allocations: 55.95 kB / 0.6077 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.7274, allocations: 96 kB / 0.6078 GB, free: 13.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.7276, allocations: 180.1 kB / 0.608 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002834/0.7279, allocations: 209.5 kB / 0.6082 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.7294, allocations: 0.7803 MB / 0.6089 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.7294, allocations: 8 kB / 0.6089 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.7294, allocations: 4 kB / 0.6089 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.7294, allocations: 11.91 kB / 0.609 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004054/0.7335, allocations: 2.655 MB / 0.6116 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.7335, allocations: 4 kB / 0.6116 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/0.7342, allocations: 167.7 kB / 0.6117 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004545/0.7346, allocations: 131.5 kB / 0.6118 GB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-05/0.7347, allocations: 12 kB / 0.6119 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.7382, allocations: 5.126 MB / 0.6169 GB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.7383, allocations: 11.94 kB / 0.6169 GB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00208/0.7403, allocations: 1.756 MB / 0.6186 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002437/0.7428, allocations: 2.453 MB / 0.621 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006871/0.7435, allocations: 342.4 kB / 0.6213 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002832/0.7438, allocations: 12.23 kB / 0.6213 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008623/0.7447, allocations: 47.97 kB / 0.6214 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.7448, allocations: 72.42 kB / 0.6214 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.7448, allocations: 28 kB / 0.6215 GB, free: 14.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001541/0.7464, allocations: 1.04 MB / 0.6225 GB, free: 13.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004394/0.7508, allocations: 0.91 MB / 0.6234 GB, free: 12.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006245/0.7514, allocations: 0.4915 MB / 0.6238 GB, free: 11.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003491/0.7549, allocations: 2.442 MB / 0.6262 GB, free: 9.145 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.755, allocations: 1.562 kB / 0.6262 GB, free: 9.145 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008572/0.7558, allocations: 0.7293 MB / 0.6269 GB, free: 8.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/0.7581, allocations: 475.4 kB / 0.6274 GB, free: 7.918 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006068/0.7641, allocations: 3.191 MB / 0.6305 GB, free: 4.586 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/0.7658, allocations: 1.763 MB / 0.6322 GB, free: 2.793 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7658, allocations: 0 / 0.6322 GB, free: 2.793 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat