Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 87.31 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 183 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.3 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002673, allocations: 12 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 50.41 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01014/0.1157, allocations: 9.01 MB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005919/0.1217, allocations: 3.039 MB / 363.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00155/0.1233, allocations: 51.75 kB / 363.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.125, allocations: 0.5513 MB / 364 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.1273, allocations: 0.7108 MB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007454/0.128, allocations: 266.3 kB / 365 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003232/0.1313, allocations: 3.028 MB / 368 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001986/0.1333, allocations: 1.647 MB / 369.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.1348, allocations: 0.9998 MB / 370.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1997/0.3345, allocations: 1.373 MB / 372 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006681/0.3352, allocations: 148.2 kB / 372.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3363, allocations: 222.3 kB / 372.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009507/0.3372, allocations: 0.7685 MB / 373.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008614/0.3381, allocations: 0.5522 MB / 373.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004788/0.3429, allocations: 3.733 MB / 377.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3429, allocations: 2 kB / 377.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.614e-06/0.3429, allocations: 0 / 377.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001406/0.3431, allocations: 0.5312 kB / 377.4 MB, free: 10.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.00616/0.3493, allocations: 2.803 MB / 380.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3493, allocations: 9.438 kB / 380.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000817/0.3501, allocations: 341.4 kB / 380.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009253/0.3511, allocations: 330.8 kB / 380.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/0.354, allocations: 1.643 MB / 382.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3542, allocations: 186 kB / 382.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.3546, allocations: 230.5 kB / 382.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006066/0.3607, allocations: 3.139 MB / 386.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.706e-05/0.3608, allocations: 13.64 kB / 386.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002235/0.361, allocations: 91.25 kB / 386.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.3612, allocations: 106.2 kB / 386.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005153/0.3663, allocations: 2.701 MB / 389 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.3812, allocations: 9.795 MB / 398.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.3835, allocations: 2.176 MB / 401 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/0.3854, allocations: 1.126 MB / 402.1 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003102/0.3857, allocations: 207.3 kB / 402.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.3858, allocations: 49.5 kB / 402.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.106e-06/0.3858, allocations: 0 / 402.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01507/0.4009, allocations: 6.937 MB / 409.3 MB, free: 8.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.401, allocations: 73.56 kB / 409.3 MB, free: 8.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/0.4038, allocations: 1.727 MB / 411.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.404, allocations: 51.78 kB / 411.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008454/0.4048, allocations: 1.15 MB / 412.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000425/0.4052, allocations: 463.4 kB / 412.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/0.4053, allocations: 28 kB / 412.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.4055, allocations: 369.9 kB / 413.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.4068, allocations: 0.8003 MB / 413.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.4083, allocations: 1.207 MB / 415.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.4098, allocations: 0.9832 MB / 416.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.4098, allocations: 4 kB / 416.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004444/0.4143, allocations: 2.676 MB / 418.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.4143, allocations: 15.95 kB / 418.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.4143, allocations: 15.98 kB / 418.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009299/0.4153, allocations: 415.2 kB / 419.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.4166, allocations: 369.1 kB / 419.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/0.4229, allocations: 6.478 MB / 426.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.4245, allocations: 119.8 kB / 426.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4247, allocations: 63.94 kB / 426.2 MB, free: 7.207 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001661/0.4264, allocations: 0.7961 MB / 427 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.4268, allocations: 181.8 kB / 427.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/0.4307, allocations: 2.4 MB / 429.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.4307, allocations: 12 kB / 429.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.4307, allocations: 11.94 kB / 429.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.4308, allocations: 7.984 kB / 429.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0081/0.4389, allocations: 5.143 MB / 434.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.4389, allocations: 4.406 kB / 434.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009473/0.4399, allocations: 251.8 kB / 435 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.441, allocations: 450.1 kB / 435.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.4411, allocations: 39.98 kB / 435.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006968/0.4481, allocations: 7.939 MB / 443.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.4481, allocations: 4 kB / 443.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005816/0.4539, allocations: 3.55 MB / 447 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/0.4554, allocations: 434.7 kB / 447.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003268/0.4557, allocations: 32 kB / 447.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009693/0.4567, allocations: 99.84 kB / 447.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.457, allocations: 118.7 kB / 447.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.7e-05/0.4571, allocations: 39.98 kB / 447.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.4591, allocations: 1.19 MB / 448.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4591, allocations: 0 / 448.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002285/0.4614, allocations: 0.4961 MB / 449.4 MB, free: 15.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005583/0.467, allocations: 4.156 MB / 453.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003834/0.4708, allocations: 2.478 MB / 456 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.4709, allocations: 4 kB / 456 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.4732, allocations: 1.614 MB / 457.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002488/0.4758, allocations: 462.1 kB / 458.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/0.5047, allocations: 15.65 MB / 473.8 MB, free: 6.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/0.5069, allocations: 1.997 MB / 475.8 MB, free: 4.059 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001656/0.5085, allocations: 447.5 kB / 476.2 MB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/0.51, allocations: 0.9132 MB / 477.1 MB, free: 2.703 MB / 382.1 MB Notification: Performance of SimCode: time 1.492e-06/0.51, allocations: 4 kB / 477.1 MB, free: 2.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07983/0.5898, allocations: 44.4 MB / 0.5093 GB, free: 6.824 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.59, allocations: 241.4 kB / 0.5095 GB, free: 6.578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.48, allocations: 3.172 kB / 0.5095 GB, free: 6.578 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat