Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.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.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",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.001531/0.001531, allocations: 110.4 kB / 16.51 MB, free: 6.715 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.001353/0.001353, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.431/1.431, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1662/0.1662, allocations: 38 MB / 308.6 MB, free: 6.227 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.001351/0.001351, allocations: 63.91 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2409, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005723/0.2467, allocations: 5.166 MB / 435.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.25, allocations: 1.656 MB / 436.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004149/0.2504, allocations: 27.81 kB / 436.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008141/0.2513, allocations: 282.2 kB / 437.1 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005729/0.2519, allocations: 250.9 kB / 437.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.2525, allocations: 235.6 kB / 437.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007328/0.2532, allocations: 1.002 MB / 438.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000407/0.2537, allocations: 232.3 kB / 438.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.254, allocations: 243 kB / 439 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004754/0.2545, allocations: 434.7 kB / 439.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.989e-05/0.2545, allocations: 28 kB / 439.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.2549, allocations: 231.5 kB / 439.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.2551, allocations: 231.4 kB / 439.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.2553, allocations: 274.6 kB / 440.2 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.2558, allocations: 0.7242 MB / 440.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2558, allocations: 0 / 440.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.2559, allocations: 0 / 440.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.2559, allocations: 0 / 440.9 MB, free: 8.75 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001311/0.2572, allocations: 0.8923 MB / 441.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2572, allocations: 8.031 kB / 441.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.593e-05/0.2573, allocations: 86.7 kB / 441.9 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005136/0.2579, allocations: 92.23 kB / 442 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.2584, allocations: 423.9 kB / 442.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.2584, allocations: 25.38 kB / 442.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.135e-05/0.2585, allocations: 47.92 kB / 442.5 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.2594, allocations: 0.8591 MB / 443.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.2594, allocations: 7.875 kB / 443.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/0.2595, allocations: 16 kB / 443.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.2596, allocations: 64.95 kB / 443.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008558/0.2605, allocations: 0.7963 MB / 444.2 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002674/0.2631, allocations: 2.725 MB / 447 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.2638, allocations: 0.5837 MB / 447.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003782/0.2642, allocations: 450.7 kB / 448 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.2642, allocations: 4 kB / 448 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.2643, allocations: 38.55 kB / 448 MB, free: 1.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.474e-06/0.2643, allocations: 0 / 448 MB, free: 1.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002481/0.2668, allocations: 1.887 MB / 449.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.868e-05/0.2669, allocations: 138.8 kB / 450 MB, free: 15.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.2671, allocations: 296.3 kB / 450.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.2672, allocations: 33.7 kB / 450.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.2673, allocations: 252.4 kB / 450.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.2675, allocations: 193.2 kB / 450.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.2676, allocations: 98.23 kB / 450.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.2678, allocations: 354.8 kB / 451.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.2682, allocations: 340.9 kB / 451.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.2688, allocations: 489.7 kB / 452.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.2699, allocations: 0.976 MB / 453 MB, free: 12.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2699, allocations: 4 kB / 453 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001378/0.2713, allocations: 0.9805 MB / 454 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.2714, allocations: 77.61 kB / 454.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.2714, allocations: 4.562 kB / 454.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001956/0.2716, allocations: 44.81 kB / 454.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.272, allocations: 87.88 kB / 454.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2732, allocations: 1.448 MB / 455.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.2735, allocations: 35.97 kB / 455.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.2736, allocations: 27.98 kB / 455.7 MB, free: 9.227 MB / 334.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: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003535/0.274, allocations: 303.2 kB / 456 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.2741, allocations: 43.53 kB / 456.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.2755, allocations: 1.076 MB / 457.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.2756, allocations: 15.98 kB / 457.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2756, allocations: 3.938 kB / 457.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.2756, allocations: 7.938 kB / 457.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.2779, allocations: 1.796 MB / 459 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.2779, allocations: 4 kB / 459 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.2781, allocations: 55.97 kB / 459 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001329/0.2783, allocations: 40.83 kB / 459.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.2783, allocations: 11.98 kB / 459.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.2794, allocations: 1.437 MB / 460.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2794, allocations: 3.938 kB / 460.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.2808, allocations: 1.179 MB / 461.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.281, allocations: 172.5 kB / 461.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.854e-05/0.2811, allocations: 15.98 kB / 461.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2813, allocations: 27.97 kB / 461.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.2815, allocations: 43.95 kB / 462 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-05/0.2815, allocations: 15.98 kB / 462 MB, free: 2.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.2817, allocations: 203.1 kB / 462.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2817, allocations: 0 / 462.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005703/0.2823, allocations: 144 kB / 462.3 MB, free: 2.355 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001771/0.2841, allocations: 1.774 MB / 464.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.2858, allocations: 1.367 MB / 465.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.2858, allocations: 0 / 465.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009721/0.2867, allocations: 0.9258 MB / 466.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.2873, allocations: 81.36 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.2942, allocations: 6.068 MB / 472.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.2947, allocations: 0.9092 MB / 473.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003188/0.2951, allocations: 103.2 kB / 473.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.2953, allocations: 155.4 kB / 473.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2954, allocations: 0 / 473.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02287/0.3182, allocations: 9.684 MB / 483.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.3185, allocations: 208.2 kB / 483.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.193, allocations: 0 / 483.6 MB, free: 12.71 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)