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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 196.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.6 MB / 234.8 MB, free: 3.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007745/0.0007745, allocations: 103.2 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.803e-05/1.783e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 51.48 MB / 395.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3433/0.4481, allocations: 96.07 MB / 491.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.4484, allocations: 82.8 kB / 491.4 MB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1195/0.5679, allocations: 44.16 MB / 0.523 GB, free: 5.836 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.568, allocations: 3.938 kB / 0.523 GB, free: 5.832 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002108/0.5682, allocations: 39.98 kB / 0.5231 GB, free: 5.793 MB / 394.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.004595/0.5728, allocations: 1.6 MB / 0.5246 GB, free: 4.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.5729, allocations: 8.031 kB / 0.5246 GB, free: 4.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.5743, allocations: 289.8 kB / 0.5249 GB, free: 3.852 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003332/0.5777, allocations: 1.196 MB / 0.5261 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.862e-05/0.5778, allocations: 52 kB / 0.5261 GB, free: 2.547 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003938/0.5782, allocations: 95.91 kB / 0.5262 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002323/0.5805, allocations: 0.877 MB / 0.5271 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.5834, allocations: 1.213 MB / 0.5283 GB, free: 308 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.478e-05/0.5835, allocations: 15.89 kB / 0.5283 GB, free: 292 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.5836, allocations: 0 / 0.5283 GB, free: 292 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.334e-05/0.5837, allocations: 40 kB / 0.5283 GB, free: 252 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009874/0.5935, allocations: 6.112 MB / 0.5343 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.5948, allocations: 0.5401 MB / 0.5348 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000722/0.5955, allocations: 397.3 kB / 0.5352 GB, free: 8.902 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.532e-05/0.5956, allocations: 4.562 kB / 0.5352 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.5956, allocations: 51.06 kB / 0.5353 GB, free: 8.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.014e-06/0.5956, allocations: 0 / 0.5353 GB, free: 8.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.003328/0.599, allocations: 1.658 MB / 0.5369 GB, free: 7.121 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.599, allocations: 107.6 kB / 0.537 GB, free: 6.992 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.6006, allocations: 0.9052 MB / 0.5379 GB, free: 6.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.6007, allocations: 25.7 kB / 0.5379 GB, free: 6.047 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006653/0.6013, allocations: 0.8675 MB / 0.5387 GB, free: 5.168 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.6015, allocations: 252.3 kB / 0.539 GB, free: 4.918 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.6016, allocations: 0 / 0.539 GB, free: 4.918 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.6017, allocations: 349.9 kB / 0.5393 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.6022, allocations: 226.6 kB / 0.5395 GB, free: 4.348 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007702/0.603, allocations: 0.6694 MB / 0.5402 GB, free: 3.469 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.6035, allocations: 352.2 kB / 0.5405 GB, free: 3.125 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.6036, allocations: 4 kB / 0.5405 GB, free: 3.121 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002168/0.6057, allocations: 1.064 MB / 0.5416 GB, free: 2.035 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.6058, allocations: 13.41 kB / 0.5416 GB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.6058, allocations: 16 kB / 0.5416 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000443/0.6063, allocations: 126.9 kB / 0.5417 GB, free: 1.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008779/0.6072, allocations: 255.6 kB / 0.5419 GB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003344/0.6105, allocations: 4.069 MB / 0.5459 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.6117, allocations: 47.89 kB / 0.546 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/0.6119, allocations: 52 kB / 0.546 GB, free: 13.11 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.0003366/0.6123, allocations: 148.5 kB / 0.5462 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001503/0.6138, allocations: 0.677 MB / 0.5468 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003129/0.6141, allocations: 134.4 kB / 0.5469 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.6156, allocations: 0.7145 MB / 0.5476 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.6156, allocations: 8 kB / 0.5477 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.6156, allocations: 0 / 0.5477 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.6157, allocations: 4.125 kB / 0.5477 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004092/0.6198, allocations: 2.01 MB / 0.5496 GB, free: 9.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.6198, allocations: 4 kB / 0.5496 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.6204, allocations: 131.8 kB / 0.5497 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003838/0.6208, allocations: 111 kB / 0.5499 GB, free: 9.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.6209, allocations: 12 kB / 0.5499 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/0.6244, allocations: 4.17 MB / 0.5539 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/0.6245, allocations: 7.938 kB / 0.5539 GB, free: 4.484 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.6267, allocations: 1.351 MB / 0.5553 GB, free: 3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006569/0.6274, allocations: 263.5 kB / 0.5555 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004173/0.6278, allocations: 8 kB / 0.5555 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000828/0.6286, allocations: 31.97 kB / 0.5556 GB, free: 2.684 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.6288, allocations: 64.38 kB / 0.5556 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.624e-05/0.6288, allocations: 20 kB / 0.5556 GB, free: 2.602 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.6301, allocations: 0.6673 MB / 0.5563 GB, free: 1.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6301, allocations: 0 / 0.5563 GB, free: 1.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00172/0.6318, allocations: 311.9 kB / 0.5566 GB, free: 1.625 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.003233/0.6351, allocations: 3.152 MB / 0.5597 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.6368, allocations: 0.9721 MB / 0.5606 GB, free: 13.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6369, allocations: 4 kB / 0.5606 GB, free: 13.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.6379, allocations: 0.6378 MB / 0.5612 GB, free: 12.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.6398, allocations: 297.4 kB / 0.5615 GB, free: 12.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006578/0.6464, allocations: 2.447 MB / 0.5639 GB, free: 9.836 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.6475, allocations: 1.245 MB / 0.5651 GB, free: 8.562 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009206/0.6484, allocations: 162.8 kB / 0.5653 GB, free: 8.398 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008616/0.6493, allocations: 0.6164 MB / 0.5659 GB, free: 7.781 MB / 442.7 MB Notification: Performance of SimCode: time 7.82e-07/0.6493, allocations: 0 / 0.5659 GB, free: 7.781 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.287/0.9363, allocations: 26.5 MB / 0.5918 GB, free: 96.16 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.9366, allocations: 157.8 kB / 0.5919 GB, free: 95.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.79/3.727, allocations: 6.656 kB / 0.5919 GB, free: 95.97 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