Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001276/0.001276, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009094/0.0009094, allocations: 89.45 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09337/0.09431, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.1754, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2122/0.3876, allocations: 96 MB / 490.7 MB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.3879, allocations: 77.39 kB / 490.8 MB, free: 13.29 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.1177/0.5056, allocations: 45.81 MB / 0.524 GB, free: 4.656 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.5056, allocations: 8 kB / 0.524 GB, free: 4.648 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.5067, allocations: 289.4 kB / 0.5243 GB, free: 4.363 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/0.5092, allocations: 1.212 MB / 0.5255 GB, free: 3.094 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.5093, allocations: 55.98 kB / 0.5255 GB, free: 3.039 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/0.5095, allocations: 99.91 kB / 0.5256 GB, free: 2.941 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001937/0.5114, allocations: 0.8692 MB / 0.5265 GB, free: 2.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.5136, allocations: 1.217 MB / 0.5277 GB, free: 0.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.794e-05/0.5137, allocations: 11.84 kB / 0.5277 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.403e-05/0.5138, allocations: 4 kB / 0.5277 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.26e-05/0.5138, allocations: 36 kB / 0.5277 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007779/0.5216, allocations: 6.139 MB / 0.5337 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.5221, allocations: 307 kB / 0.534 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006905/0.5228, allocations: 411.5 kB / 0.5344 GB, free: 9.598 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.5229, allocations: 8.656 kB / 0.5344 GB, free: 9.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.5229, allocations: 43.22 kB / 0.5345 GB, free: 9.539 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.507e-06/0.5229, allocations: 0 / 0.5345 GB, free: 9.539 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.002882/0.5258, allocations: 1.657 MB / 0.5361 GB, free: 7.824 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.5259, allocations: 111.5 kB / 0.5362 GB, free: 7.691 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.5271, allocations: 0.9013 MB / 0.5371 GB, free: 6.781 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.5271, allocations: 29.7 kB / 0.5371 GB, free: 6.746 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003682/0.5275, allocations: 0.6878 MB / 0.5378 GB, free: 6.047 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.5277, allocations: 252.3 kB / 0.538 GB, free: 5.797 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.5277, allocations: 0 / 0.538 GB, free: 5.797 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5279, allocations: 353.9 kB / 0.5383 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.5283, allocations: 222.6 kB / 0.5386 GB, free: 5.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006514/0.5289, allocations: 0.6736 MB / 0.5392 GB, free: 4.344 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005277/0.5295, allocations: 342.9 kB / 0.5395 GB, free: 4.008 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5295, allocations: 4 kB / 0.5395 GB, free: 4.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001901/0.5314, allocations: 1.072 MB / 0.5406 GB, free: 2.918 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.5314, allocations: 4 kB / 0.5406 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.5314, allocations: 16 kB / 0.5406 GB, free: 2.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000367/0.5318, allocations: 118.8 kB / 0.5407 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009183/0.5327, allocations: 263.6 kB / 0.541 GB, free: 2.516 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/0.5359, allocations: 4.04 MB / 0.5449 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008636/0.5368, allocations: 48.05 kB / 0.545 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/0.5369, allocations: 52 kB / 0.545 GB, free: 14.03 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002099/0.5371, allocations: 150.3 kB / 0.5452 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.5373, allocations: 126.5 kB / 0.5453 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.5388, allocations: 0.714 MB / 0.546 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.5388, allocations: 19.88 kB / 0.546 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5388, allocations: 0 / 0.546 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.5388, allocations: 0 / 0.546 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.5421, allocations: 2.011 MB / 0.548 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.5421, allocations: 4 kB / 0.548 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006529/0.5428, allocations: 128.3 kB / 0.5481 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003356/0.5431, allocations: 122.4 kB / 0.5482 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.5432, allocations: 8 kB / 0.5482 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003303/0.5465, allocations: 4.142 MB / 0.5522 GB, free: 6.129 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.5465, allocations: 7.938 kB / 0.5523 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001854/0.5484, allocations: 1.358 MB / 0.5536 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002354/0.5507, allocations: 2.011 MB / 0.5555 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004649/0.5512, allocations: 263.4 kB / 0.5558 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.5514, allocations: 4 kB / 0.5558 GB, free: 2.184 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006392/0.552, allocations: 44.36 kB / 0.5558 GB, free: 2.141 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.075e-05/0.5521, allocations: 56.27 kB / 0.5559 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.5522, allocations: 27.98 kB / 0.5559 GB, free: 2.059 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000898/0.5531, allocations: 0.6556 MB / 0.5566 GB, free: 1.398 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001807/0.5549, allocations: 327.9 kB / 0.5569 GB, free: 1.078 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004413/0.5554, allocations: 346.8 kB / 0.5572 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.5568, allocations: 0.9668 MB / 0.5582 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5568, allocations: 4 kB / 0.5582 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000722/0.5575, allocations: 0.5906 MB / 0.5587 GB, free: 15.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5588, allocations: 283.2 kB / 0.559 GB, free: 14.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/0.5634, allocations: 2.304 MB / 0.5613 GB, free: 12.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.5644, allocations: 1.356 MB / 0.5626 GB, free: 11.08 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5644, allocations: 4 kB / 0.5626 GB, free: 11.07 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat