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.0008811/0.0008811, allocations: 96.36 kB / 16.3 MB, free: 6.461 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.0009467/0.0009468, allocations: 174 kB / 17.19 MB, free: 6.348 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.432/1.432, allocations: 223.2 MB / 241.1 MB, free: 392 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 11.98 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1147, allocations: 50.42 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01013/0.1249, allocations: 8.275 MB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00616/0.1311, allocations: 3.122 MB / 362.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.1325, allocations: 47.75 kB / 362.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.1341, allocations: 0.5714 MB / 363.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002626/0.1368, allocations: 0.7126 MB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008783/0.1377, allocations: 259.6 kB / 364.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003284/0.141, allocations: 1.903 MB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00221/0.1432, allocations: 1.643 MB / 367.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.1451, allocations: 0.9263 MB / 368.7 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002103/0.1472, allocations: 1.198 MB / 369.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003207/0.1476, allocations: 144 kB / 370 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007422/0.1483, allocations: 223.8 kB / 370.3 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009139/0.1492, allocations: 0.7244 MB / 371 MB, free: 100 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.224/0.3732, allocations: 0.5522 MB / 371.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005777/0.379, allocations: 3.694 MB / 375.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3791, allocations: 1.312 kB / 375.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3791, allocations: 0 / 375.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001839/0.3793, allocations: 0 / 375.2 MB, free: 11.73 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.006885/0.3862, allocations: 2.787 MB / 378 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.3862, allocations: 10.12 kB / 378 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008866/0.3871, allocations: 337.2 kB / 378.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/0.3883, allocations: 323.7 kB / 378.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004441/0.3927, allocations: 1.667 MB / 380.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.393, allocations: 178.6 kB / 380.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005178/0.3935, allocations: 236.7 kB / 380.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006957/0.4005, allocations: 3.108 MB / 383.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.447e-05/0.4006, allocations: 14.48 kB / 383.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.4008, allocations: 96.23 kB / 384 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/0.401, allocations: 106.2 kB / 384.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005315/0.4063, allocations: 2.705 MB / 386.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.017/0.4233, allocations: 9.742 MB / 396.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.4259, allocations: 2.176 MB / 398.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002838/0.4262, allocations: 201.5 kB / 398.9 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.4262, allocations: 49.41 kB / 398.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=116): time 3.497e-06/0.4262, allocations: 0 / 398.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=131): time 0.01516/0.4414, allocations: 6.932 MB / 405.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.4415, allocations: 64.72 kB / 405.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003391/0.4449, allocations: 1.688 MB / 407.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.4451, allocations: 49.7 kB / 407.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009516/0.446, allocations: 1.162 MB / 408.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.4466, allocations: 447.1 kB / 409.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.4467, allocations: 28 kB / 409.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.4469, allocations: 373.9 kB / 409.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.4484, allocations: 0.8107 MB / 410.5 MB, free: 7.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.4502, allocations: 1.201 MB / 411.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.4519, allocations: 0.9778 MB / 412.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/0.4519, allocations: 6.297 kB / 412.6 MB, free: 5.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004677/0.4566, allocations: 2.676 MB / 415.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.4567, allocations: 8 kB / 415.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.4567, allocations: 15.98 kB / 415.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009489/0.4577, allocations: 391.4 kB / 415.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.459, allocations: 374.2 kB / 416.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006266/0.4653, allocations: 6.366 MB / 422.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.4671, allocations: 115.8 kB / 422.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.4674, allocations: 63.98 kB / 422.6 MB, free: 11.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 (177): * Single equations (assignments): 173 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001918/0.4693, allocations: 0.7946 MB / 423.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005759/0.4699, allocations: 185.7 kB / 423.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/0.4741, allocations: 2.394 MB / 426 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.4741, allocations: 15.28 kB / 426 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.4741, allocations: 7.953 kB / 426 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.4741, allocations: 3.984 kB / 426 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009914/0.4841, allocations: 5.09 MB / 431.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.4841, allocations: 416 / 431.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.4852, allocations: 251.1 kB / 431.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.4863, allocations: 437 kB / 431.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.4864, allocations: 35.98 kB / 431.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008154/0.4946, allocations: 7.875 MB / 439.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.4946, allocations: 5.406 kB / 439.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006077/0.5007, allocations: 3.747 MB / 443.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.5022, allocations: 426.8 kB / 443.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006902/0.5029, allocations: 35.98 kB / 443.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.5042, allocations: 95.91 kB / 444 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/0.5046, allocations: 120.4 kB / 444.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.265e-05/0.5047, allocations: 36.11 kB / 444.2 MB, free: 4.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002047/0.5067, allocations: 1.155 MB / 445.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5067, allocations: 0 / 445.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002436/0.5092, allocations: 0.5001 MB / 445.8 MB, free: 3.133 MB / 350.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 (117): * Single equations (assignments): 113 * 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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006597/0.5158, allocations: 5.208 MB / 451 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.5197, allocations: 2.477 MB / 453.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.5197, allocations: 2 kB / 453.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002394/0.5221, allocations: 1.602 MB / 455.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.5244, allocations: 438.4 kB / 455.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/0.557, allocations: 23.36 MB / 478.9 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/0.5594, allocations: 2.04 MB / 480.9 MB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002728/0.5622, allocations: 451.2 kB / 481.4 MB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/0.5641, allocations: 0.9211 MB / 482.3 MB, free: 13.54 MB / 398.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5642, allocations: 0 / 482.3 MB, free: 13.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/0.6702, allocations: 44.07 MB / 0.514 GB, free: 1.996 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.6706, allocations: 223.5 kB / 0.5142 GB, free: 1.762 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.834/3.505, allocations: 2.5 kB / 0.5142 GB, free: 1.762 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