Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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 trunk/package.mo): time 0.001167/0.001167, allocations: 199.7 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.136/1.136, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009595/0.0009594, allocations: 89.45 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09737/0.09836, allocations: 56.91 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08224/0.1806, allocations: 51.48 MB / 394.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.4139, allocations: 95.73 MB / 490.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4142, allocations: 81.2 kB / 490.5 MB, free: 13.55 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.1069/0.5212, allocations: 41.86 MB / 0.5199 GB, free: 8.855 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.5212, allocations: 8 kB / 0.5199 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/0.5222, allocations: 265.6 kB / 0.5202 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.5244, allocations: 1.105 MB / 0.5213 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.874e-05/0.5245, allocations: 51.98 kB / 0.5213 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.5247, allocations: 107.8 kB / 0.5214 GB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001702/0.5264, allocations: 0.8106 MB / 0.5222 GB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.5285, allocations: 1.208 MB / 0.5234 GB, free: 5.188 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.685e-05/0.5286, allocations: 7.891 kB / 0.5234 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-05/0.5287, allocations: 4 kB / 0.5234 GB, free: 5.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.5288, allocations: 40 kB / 0.5234 GB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007745/0.5365, allocations: 6.371 MB / 0.5296 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003787/0.5369, allocations: 226.6 kB / 0.5299 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.5372, allocations: 190.2 kB / 0.53 GB, free: 14.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.5373, allocations: 4.438 kB / 0.53 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.5377, allocations: 232.8 kB / 0.5303 GB, free: 13.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.485e-06/0.5377, allocations: 0 / 0.5303 GB, free: 13.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.002384/0.5401, allocations: 1.495 MB / 0.5317 GB, free: 12.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.5401, allocations: 188.4 kB / 0.5319 GB, free: 11.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.5413, allocations: 0.8515 MB / 0.5327 GB, free: 11.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.5414, allocations: 25.7 kB / 0.5328 GB, free: 11.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004507/0.5418, allocations: 0.7297 MB / 0.5335 GB, free: 10.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.542, allocations: 197.2 kB / 0.5337 GB, free: 10.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/0.542, allocations: 0 / 0.5337 GB, free: 10.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5422, allocations: 358 kB / 0.534 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.5425, allocations: 186.6 kB / 0.5342 GB, free: 9.594 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006102/0.5431, allocations: 0.7501 MB / 0.5349 GB, free: 8.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.5436, allocations: 329.1 kB / 0.5352 GB, free: 8.254 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.5436, allocations: 8 kB / 0.5352 GB, free: 8.246 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001461/0.5451, allocations: 0.9388 MB / 0.5362 GB, free: 7.293 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.5451, allocations: 4 kB / 0.5362 GB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.5451, allocations: 23.94 kB / 0.5362 GB, free: 7.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002003/0.5453, allocations: 65.7 kB / 0.5362 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008254/0.5462, allocations: 279.9 kB / 0.5365 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.5478, allocations: 2.475 MB / 0.5389 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007999/0.5486, allocations: 51.97 kB / 0.539 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.5487, allocations: 60 kB / 0.539 GB, free: 4.102 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.5489, allocations: 156.4 kB / 0.5392 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.549, allocations: 118.5 kB / 0.5393 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007729/0.5498, allocations: 457.8 kB / 0.5397 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.5498, allocations: 4 kB / 0.5397 GB, free: 3.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5498, allocations: 0 / 0.5397 GB, free: 3.355 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.5499, allocations: 7.984 kB / 0.5397 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.5521, allocations: 1.649 MB / 0.5414 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5521, allocations: 4 kB / 0.5414 GB, free: 1.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.5526, allocations: 107.9 kB / 0.5415 GB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.5528, allocations: 50.17 kB / 0.5415 GB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.5528, allocations: 4 kB / 0.5415 GB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.5544, allocations: 2.453 MB / 0.5439 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.5544, allocations: 7.938 kB / 0.5439 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001087/0.5555, allocations: 0.9977 MB / 0.5449 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001434/0.5569, allocations: 1.562 MB / 0.5464 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003677/0.5573, allocations: 239.5 kB / 0.5466 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.5575, allocations: 8 kB / 0.5467 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005185/0.558, allocations: 31.97 kB / 0.5467 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.436e-05/0.5581, allocations: 43.8 kB / 0.5467 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.5582, allocations: 24 kB / 0.5467 GB, free: 11.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0008378/0.559, allocations: 0.611 MB / 0.5473 GB, free: 10.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001659/0.5607, allocations: 296 kB / 0.5476 GB, free: 10.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003867/0.5611, allocations: 276.7 kB / 0.5479 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.5622, allocations: 0.7873 MB / 0.5487 GB, free: 9.547 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5622, allocations: 3.938 kB / 0.5487 GB, free: 9.543 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.5627, allocations: 417 kB / 0.5491 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.5639, allocations: 263.7 kB / 0.5493 GB, free: 8.859 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.5672, allocations: 1.856 MB / 0.5511 GB, free: 6.914 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009272/0.5682, allocations: 1.296 MB / 0.5524 GB, free: 5.59 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5682, allocations: 0 / 0.5524 GB, free: 5.59 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat