Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001101/0.001102, allocations: 87.34 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.001236/0.001236, allocations: 183.6 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.2 MB / 241.2 MB, free: 5.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3388/0.3388, allocations: 38.08 MB / 330.4 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 11.98 kB / 400.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.317, allocations: 59.15 MB / 459.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.00861/0.3257, allocations: 5.529 MB / 464.8 MB, free: 26.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007874/0.3336, allocations: 4.108 MB / 469 MB, free: 23.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007498/0.3344, allocations: 34.09 kB / 469 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009327/0.3438, allocations: 4.382 MB / 473.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.3452, allocations: 388.6 kB / 473.8 MB, free: 22.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.346, allocations: 235.1 kB / 474 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.3485, allocations: 1.8 MB / 475.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009235/0.3494, allocations: 0.4902 MB / 476.3 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005671/0.35, allocations: 319.6 kB / 476.6 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005758/0.3506, allocations: 434.8 kB / 477 MB, free: 20.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.3507, allocations: 24.44 kB / 477 MB, free: 20.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.3509, allocations: 77.25 kB / 477.1 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002224/0.3511, allocations: 250.2 kB / 477.4 MB, free: 20.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3513, allocations: 135.7 kB / 477.5 MB, free: 20.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.3517, allocations: 0.5587 MB / 478 MB, free: 19.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3517, allocations: 7.938 kB / 478 MB, free: 19.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3518, allocations: 0 / 478 MB, free: 19.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3518, allocations: 0 / 478 MB, free: 19.72 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001323/0.3531, allocations: 0.7959 MB / 478.8 MB, free: 19.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3532, allocations: 9.688 kB / 478.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.3533, allocations: 92.52 kB / 478.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004193/0.3537, allocations: 97.42 kB / 479 MB, free: 18.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008426/0.3545, allocations: 0.5197 MB / 479.6 MB, free: 18.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.3546, allocations: 30.88 kB / 479.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.598e-05/0.3547, allocations: 51.83 kB / 479.6 MB, free: 18.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009066/0.3556, allocations: 0.6414 MB / 480.3 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/0.3556, allocations: 10.2 kB / 480.3 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.697e-05/0.3557, allocations: 21 kB / 480.3 MB, free: 18.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.3558, allocations: 50.47 kB / 480.4 MB, free: 18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007844/0.3566, allocations: 490.7 kB / 480.8 MB, free: 17.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.3594, allocations: 2.543 MB / 483.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003911/0.3599, allocations: 311.6 kB / 483.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.3601, allocations: 178.5 kB / 483.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.3601, allocations: 15.92 kB / 483.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.3601, allocations: 39.06 kB / 483.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.174e-06/0.3601, allocations: 0 / 483.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002263/0.3624, allocations: 1.633 MB / 485.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.3625, allocations: 106.8 kB / 485.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.3628, allocations: 425.8 kB / 486.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.3629, allocations: 33.7 kB / 486.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.363, allocations: 311.5 kB / 486.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.453e-05/0.3631, allocations: 122.3 kB / 486.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.3631, allocations: 12.03 kB / 486.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.3632, allocations: 362.8 kB / 486.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.3635, allocations: 161 kB / 487 MB, free: 11.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.3637, allocations: 297.8 kB / 487.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.364, allocations: 215.6 kB / 487.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.364, allocations: 4 kB / 487.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001098/0.3652, allocations: 0.784 MB / 488.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3652, allocations: 11.98 kB / 488.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.3652, allocations: 4 kB / 488.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005445/0.3657, allocations: 215.8 kB / 488.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.366, allocations: 76.08 kB / 488.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.3693, allocations: 3.884 MB / 492.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.3697, allocations: 19.98 kB / 492.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.3697, allocations: 20 kB / 492.6 MB, free: 5.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002998/0.37, allocations: 225.6 kB / 492.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.287e-05/0.3701, allocations: 51.42 kB / 492.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007999/0.3709, allocations: 0.6378 MB / 493.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3709, allocations: 4 kB / 493.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3709, allocations: 4 kB / 493.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.371, allocations: 0 / 493.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.3724, allocations: 1.191 MB / 494.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3724, allocations: 4 kB / 494.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.3728, allocations: 75.95 kB / 494.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000136/0.3729, allocations: 53.67 kB / 494.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.373, allocations: 11.98 kB / 494.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.3742, allocations: 2.63 MB / 497.4 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3742, allocations: 7.984 kB / 497.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.3753, allocations: 0.9494 MB / 498.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.3755, allocations: 152.4 kB / 498.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.084e-05/0.3755, allocations: 15.77 kB / 498.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.3758, allocations: 11.94 kB / 498.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.42e-05/0.3759, allocations: 39.88 kB / 498.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.3759, allocations: 16 kB / 498.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003309/0.3762, allocations: 287.1 kB / 498.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3762, allocations: 0 / 498.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006981/0.3769, allocations: 128 kB / 499 MB, free: 14.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001933/0.3789, allocations: 1.5 MB / 0.4888 GB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.3806, allocations: 0.7129 MB / 0.4895 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.3806, allocations: 4 kB / 0.4895 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005803/0.3812, allocations: 409.4 kB / 0.4899 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009076/0.3821, allocations: 116.6 kB / 0.49 GB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006245/0.3884, allocations: 4.011 MB / 0.4939 GB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/0.389, allocations: 0.9444 MB / 0.4948 GB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000382/0.3894, allocations: 100.4 kB / 0.4949 GB, free: 6.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.3897, allocations: 195.4 kB / 0.4951 GB, free: 6.457 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3898, allocations: 0 / 0.4951 GB, free: 6.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.429, allocations: 11.42 MB / 0.5063 GB, free: 11.27 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002871/0.4293, allocations: 225.8 kB / 0.5065 GB, free: 11.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.389, allocations: 0 / 0.5065 GB, free: 11.02 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat does not exist to compare? outputFormat=mat