Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001522/0.001522, allocations: 179.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.55/1.55, allocations: 194.3 MB / 203.1 MB, free: 12.94 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001599/0.001599, allocations: 109.1 kB / 248.1 MB, free: 15.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1641/0.1641, allocations: 37.93 MB / 330.9 MB, free: 2.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.159e-05/2.161e-05, allocations: 4 kB / 390.5 MB, free: 6.977 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3239, allocations: 53.23 MB / 443.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4531, allocations: 91.84 MB / 0.523 GB, free: 5.672 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.4534, allocations: 95.94 kB / 0.5231 GB, free: 5.578 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2744/0.7278, allocations: 9.797 MB / 0.5326 GB, free: 89.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.7278, allocations: 0 / 0.5326 GB, free: 89.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.681e-05/0.7279, allocations: 8.344 kB / 0.5326 GB, free: 89.11 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008628/0.7287, allocations: 0.5832 MB / 0.5332 GB, free: 88.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.7288, allocations: 10 kB / 0.5332 GB, free: 88.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.94e-05/0.7289, allocations: 46.73 kB / 0.5333 GB, free: 88.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.7302, allocations: 0.6093 MB / 0.5339 GB, free: 88.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.7302, allocations: 8.062 kB / 0.5339 GB, free: 88.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.7303, allocations: 15.31 kB / 0.5339 GB, free: 88.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003436/0.7306, allocations: 169 kB / 0.534 GB, free: 88.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/0.7311, allocations: 296.4 kB / 0.5343 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.7311, allocations: 8.906 kB / 0.5343 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.7312, allocations: 1.531 kB / 0.5343 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.7312, allocations: 7.094 kB / 0.5343 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.7327, allocations: 1.421 MB / 0.5357 GB, free: 87.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/0.7331, allocations: 178.3 kB / 0.5359 GB, free: 86.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.7332, allocations: 74.78 kB / 0.536 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.7333, allocations: 6.656 kB / 0.536 GB, free: 86.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.7333, allocations: 44.81 kB / 0.536 GB, free: 86.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.7333, allocations: 0 / 0.536 GB, free: 86.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001257/0.7346, allocations: 0.784 MB / 0.5368 GB, free: 86.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.7346, allocations: 136.1 kB / 0.5369 GB, free: 85.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.735, allocations: 232.8 kB / 0.5371 GB, free: 85.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.735, allocations: 26.83 kB / 0.5372 GB, free: 85.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.7351, allocations: 219.5 kB / 0.5374 GB, free: 85.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.7352, allocations: 62.95 kB / 0.5374 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.7352, allocations: 0 / 0.5374 GB, free: 85.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.929e-05/0.7353, allocations: 344.7 kB / 0.5378 GB, free: 85.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.6e-05/0.7354, allocations: 47.81 kB / 0.5378 GB, free: 85.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.7355, allocations: 140.9 kB / 0.5379 GB, free: 85.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.7357, allocations: 77.06 kB / 0.538 GB, free: 85.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7357, allocations: 5.125 kB / 0.538 GB, free: 85.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003349/0.736, allocations: 219.5 kB / 0.5382 GB, free: 84.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.736, allocations: 12.58 kB / 0.5382 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.7361, allocations: 4.031 kB / 0.5383 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.7361, allocations: 9.594 kB / 0.5383 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.7364, allocations: 76.95 kB / 0.5383 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006414/0.7371, allocations: 1.241 MB / 0.5395 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.7372, allocations: 6.875 kB / 0.5396 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.7373, allocations: 10.69 kB / 0.5396 GB, free: 83.63 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.615e-05/0.7374, allocations: 111.4 kB / 0.5397 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003221/0.7377, allocations: 158.7 kB / 0.5398 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.698e-05/0.7378, allocations: 33.64 kB / 0.5399 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.7381, allocations: 175.8 kB / 0.54 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.7381, allocations: 4.281 kB / 0.54 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.7381, allocations: 1.406 kB / 0.54 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.7381, allocations: 0 / 0.54 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006761/0.7388, allocations: 0.4928 MB / 0.5405 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.7388, allocations: 0 / 0.5405 GB, free: 82.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.7391, allocations: 53.91 kB / 0.5406 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.7391, allocations: 0 / 0.5406 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.7391, allocations: 6.469 kB / 0.5406 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.7391, allocations: 3.219 kB / 0.5406 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.7392, allocations: 0 / 0.5406 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.7396, allocations: 0.5093 MB / 0.5411 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/0.7396, allocations: 99.36 kB / 0.5412 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.7397, allocations: 3.281 kB / 0.5412 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.7398, allocations: 0 / 0.5412 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.7399, allocations: 17.42 kB / 0.5412 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.7399, allocations: 13.11 kB / 0.5412 GB, free: 82.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000128/0.74, allocations: 184.6 kB / 0.5414 GB, free: 82.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.74, allocations: 0 / 0.5414 GB, free: 82.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004126/0.7405, allocations: 57.72 kB / 0.5414 GB, free: 82.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000682/0.7412, allocations: 1.276 MB / 0.5427 GB, free: 81.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002893/0.7415, allocations: 144.1 kB / 0.5428 GB, free: 81.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7415, allocations: 0.875 kB / 0.5428 GB, free: 81.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.684e-05/0.7416, allocations: 71.31 kB / 0.5429 GB, free: 81.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005226/0.7421, allocations: 74.25 kB / 0.5429 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.7434, allocations: 0.6555 MB / 0.5436 GB, free: 80.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.7436, allocations: 0.8146 MB / 0.5444 GB, free: 79.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.7438, allocations: 52.62 kB / 0.5444 GB, free: 79.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.744, allocations: 116.3 kB / 0.5445 GB, free: 79.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.744, allocations: 0 / 0.5445 GB, free: 79.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.7703, allocations: 5.47 MB / 0.5499 GB, free: 77.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.7705, allocations: 139.3 kB / 0.55 GB, free: 77.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.82, allocations: 3.938 kB / 0.55 GB, free: 77.48 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)