Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.0009282/0.000928, allocations: 174.6 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006937/0.0006935, allocations: 84.92 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1628/0.1628, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003331, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2355, allocations: 56.33 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004689/0.2402, allocations: 4.588 MB / 484.3 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.2425, allocations: 1.614 MB / 485.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003669/0.243, allocations: 27.69 kB / 486 MB, free: 5.051 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00039/0.2433, allocations: 117.5 kB / 486.1 MB, free: 4.992 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007372/0.2441, allocations: 294.2 kB / 486.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.2444, allocations: 120.4 kB / 486.5 MB, free: 4.766 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000708/0.2452, allocations: 0.5433 MB / 487 MB, free: 4.539 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.2454, allocations: 132.8 kB / 487.2 MB, free: 4.488 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.2456, allocations: 163.8 kB / 487.3 MB, free: 4.422 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.2459, allocations: 200.3 kB / 487.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.246, allocations: 15.09 kB / 487.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.354e-05/0.246, allocations: 14.59 kB / 487.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.2461, allocations: 93.86 kB / 487.6 MB, free: 4.305 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.2463, allocations: 187.2 kB / 487.8 MB, free: 4.184 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003103/0.2466, allocations: 273.3 kB / 488.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2466, allocations: 0 / 488.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.2467, allocations: 1.375 kB / 488.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2467, allocations: 0 / 488.1 MB, free: 4.117 MB / 314.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.0008768/0.2476, allocations: 0.5967 MB / 488.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2476, allocations: 9.031 kB / 488.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.198e-05/0.2477, allocations: 65.8 kB / 488.8 MB, free: 3.562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.2477, allocations: 41.97 kB / 488.8 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005142/0.2482, allocations: 384.3 kB / 489.2 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.2483, allocations: 19.42 kB / 489.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.903e-05/0.2483, allocations: 29.59 kB / 489.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.2488, allocations: 334.5 kB / 489.5 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2488, allocations: 1.219 kB / 489.5 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.2489, allocations: 15.28 kB / 489.6 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2489, allocations: 7.312 kB / 489.6 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.2492, allocations: 201.4 kB / 489.8 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.2505, allocations: 1.492 MB / 491.3 MB, free: 1.691 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.2509, allocations: 204.4 kB / 491.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.251, allocations: 75.19 kB / 491.5 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.251, allocations: 5.312 kB / 491.5 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.251, allocations: 42.06 kB / 491.6 MB, free: 1.441 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.154e-06/0.2511, allocations: 0 / 491.6 MB, free: 1.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.000921/0.252, allocations: 0.6816 MB / 492.3 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.252, allocations: 135.9 kB / 492.4 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.2523, allocations: 317.8 kB / 492.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2523, allocations: 35.3 kB / 492.7 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2524, allocations: 214.4 kB / 492.9 MB, free: 376 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.2525, allocations: 65.69 kB / 493 MB, free: 324 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.2525, allocations: 5.812 kB / 493 MB, free: 320 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.2526, allocations: 340.4 kB / 493.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.851e-05/0.2527, allocations: 47.58 kB / 493.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.2528, allocations: 146 kB / 493.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.2531, allocations: 223.4 kB / 493.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2531, allocations: 1.25 kB / 493.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003576/0.2535, allocations: 255.4 kB / 494 MB, free: 15.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2535, allocations: 6.75 kB / 494 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2535, allocations: 4.125 kB / 494 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.2536, allocations: 8.578 kB / 494 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.2539, allocations: 78.02 kB / 494.1 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007881/0.2547, allocations: 1.282 MB / 495.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.2549, allocations: 8.703 kB / 495.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.2549, allocations: 19.52 kB / 495.4 MB, free: 14.14 MB / 330.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 0.0001732/0.2551, allocations: 165.3 kB / 495.6 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.2552, allocations: 34.75 kB / 495.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003152/0.2555, allocations: 184.6 kB / 495.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2555, allocations: 4.156 kB / 495.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.2555, allocations: 1.906 kB / 495.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2555, allocations: 1.938 kB / 495.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007639/0.2563, allocations: 0.5443 MB / 496.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2563, allocations: 1.922 kB / 496.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.2566, allocations: 42.55 kB / 496.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2566, allocations: 2 kB / 496.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.2566, allocations: 7.094 kB / 496.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2566, allocations: 1.406 kB / 496.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.2566, allocations: 1.984 kB / 496.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/0.2571, allocations: 0.4956 MB / 496.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.2572, allocations: 105.5 kB / 497 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.2572, allocations: 3.594 kB / 497 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.2574, allocations: 10.48 kB / 497 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.2574, allocations: 14.25 kB / 497 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.2575, allocations: 13.58 kB / 497 MB, free: 12.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002081/0.2577, allocations: 221.5 kB / 497.3 MB, free: 12.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2577, allocations: 0 / 497.3 MB, free: 12.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003894/0.2581, allocations: 60.09 kB / 497.3 MB, free: 12.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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.0006995/0.2588, allocations: 1.035 MB / 498.3 MB, free: 11.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.2592, allocations: 158.4 kB / 498.5 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2592, allocations: 0.9375 kB / 498.5 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.2593, allocations: 66.61 kB / 498.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.2601, allocations: 84.66 kB / 498.6 MB, free: 11.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.2632, allocations: 2.112 MB / 0.489 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.2637, allocations: 0.804 MB / 0.4898 GB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.2638, allocations: 113.4 kB / 0.4899 GB, free: 9.75 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2638, allocations: 0 / 0.4899 GB, free: 9.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.002/3.266, allocations: 5.722 MB / 0.4955 GB, free: 7.488 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)