Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001147/0.001147, allocations: 102.2 kB / 17.06 MB, free: 6.016 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.001165/0.001165, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1869/0.1869, allocations: 37.98 MB / 309.2 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1044, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005979/0.1104, allocations: 3.917 MB / 490.5 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.1122, allocations: 0.917 MB / 491.4 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002686/0.1125, allocations: 11.94 kB / 491.5 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1127, allocations: 39.58 kB / 491.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006418/0.1134, allocations: 163.1 kB / 491.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.1136, allocations: 91.83 kB / 491.7 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005317/0.1142, allocations: 362.7 kB / 492.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.1144, allocations: 88.78 kB / 492.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003773/0.1148, allocations: 167.3 kB / 492.3 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003797/0.1152, allocations: 175.3 kB / 492.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.1152, allocations: 20 kB / 492.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.024e-05/0.1153, allocations: 16 kB / 492.6 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.1154, allocations: 79.73 kB / 492.6 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.1156, allocations: 127.3 kB / 492.8 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.1159, allocations: 259 kB / 493 MB, free: 2.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1159, allocations: 0 / 493 MB, free: 2.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1159, allocations: 4 kB / 493 MB, free: 2.406 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.1159, allocations: 0 / 493 MB, free: 2.406 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009556/0.1169, allocations: 0.5506 MB / 493.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1169, allocations: 15.89 kB / 493.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.992e-05/0.117, allocations: 50.73 kB / 493.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.972e-05/0.1171, allocations: 32.56 kB / 493.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.1176, allocations: 335.4 kB / 494 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.1176, allocations: 20.44 kB / 494 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.1176, allocations: 20 kB / 494 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.118, allocations: 266 kB / 494.3 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1181, allocations: 0 / 494.3 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1181, allocations: 8 kB / 494.3 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1181, allocations: 12 kB / 494.3 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.1184, allocations: 159.8 kB / 494.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.1197, allocations: 1.171 MB / 495.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.1198, allocations: 77.23 kB / 495.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.893e-05/0.1199, allocations: 29.75 kB / 495.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.1199, allocations: 11.92 kB / 495.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.12, allocations: 30.56 kB / 495.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.12, allocations: 0 / 495.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007431/0.1207, allocations: 408.9 kB / 496.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.1208, allocations: 85.05 kB / 496.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.121, allocations: 250.4 kB / 496.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1211, allocations: 25.7 kB / 496.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1212, allocations: 195.6 kB / 496.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.1212, allocations: 27.64 kB / 496.7 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/0.1213, allocations: 45.61 kB / 496.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1214, allocations: 330.9 kB / 497.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.326e-05/0.1215, allocations: 27.98 kB / 497.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.1216, allocations: 120.8 kB / 497.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.1218, allocations: 172.7 kB / 497.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1218, allocations: 0 / 497.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002724/0.1221, allocations: 181.2 kB / 497.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.1221, allocations: 11.94 kB / 497.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1222, allocations: 7.938 kB / 497.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.1222, allocations: 4 kB / 497.6 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.1223, allocations: 36.42 kB / 497.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.1224, allocations: 11.94 kB / 497.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.84e-05/0.1225, allocations: 8.438 kB / 497.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1225, allocations: 8 kB / 497.7 MB, free: 13.27 MB / 382.1 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.1226, allocations: 149.8 kB / 497.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-05/0.1227, allocations: 27.66 kB / 497.9 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.1229, allocations: 87.39 kB / 498 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1229, allocations: 4 kB / 498 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1229, allocations: 4 kB / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1229, allocations: 4 kB / 498 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.1234, allocations: 423.2 kB / 498.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1234, allocations: 4 kB / 498.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.402e-05/0.1235, allocations: 16 kB / 498.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1235, allocations: 3.938 kB / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.1235, allocations: 4 kB / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1235, allocations: 0 / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1235, allocations: 0 / 498.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.1238, allocations: 236.9 kB / 498.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.1238, allocations: 96.84 kB / 498.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.1239, allocations: 8.094 kB / 498.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.208e-05/0.124, allocations: 3.938 kB / 498.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.764e-05/0.124, allocations: 7.984 kB / 498.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/0.124, allocations: 8.062 kB / 498.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.1242, allocations: 166 kB / 498.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1242, allocations: 3.938 kB / 498.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000301/0.1245, allocations: 40 kB / 499 MB, free: 11.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005101/0.125, allocations: 0.7607 MB / 499.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001777/0.1252, allocations: 91.83 kB / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1252, allocations: 0 / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.512e-05/0.1252, allocations: 28.92 kB / 499.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.1257, allocations: 64.39 kB / 499.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.1282, allocations: 2.303 MB / 0.4904 GB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.1286, allocations: 0.7596 MB / 0.4912 GB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.1287, allocations: 22.3 kB / 0.4912 GB, free: 7.625 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1288, allocations: 75.5 kB / 0.4913 GB, free: 7.551 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1288, allocations: 3.938 kB / 0.4913 GB, free: 7.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.1526, allocations: 4.195 MB / 0.4954 GB, free: 3.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.646, allocations: 11.72 kB / 0.4954 GB, free: 3.289 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)