Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.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.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor",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.00128/0.00128, allocations: 173 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.293/1.293, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0006803/0.0006802, allocations: 82.42 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.163/0.163, allocations: 38.09 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003242, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2229, allocations: 56.34 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004002/0.227, allocations: 4.563 MB / 484.3 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2289, allocations: 1.546 MB / 485.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.2291, allocations: 29.81 kB / 485.9 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.2294, allocations: 80.3 kB / 486 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005994/0.23, allocations: 303.1 kB / 486.3 MB, free: 4.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.2306, allocations: 255.6 kB / 486.5 MB, free: 4.816 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006798/0.2313, allocations: 0.7847 MB / 487.3 MB, free: 4.543 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000585/0.2318, allocations: 420.1 kB / 487.7 MB, free: 4.285 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003174/0.2322, allocations: 239.8 kB / 487.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.2327, allocations: 408.8 kB / 488.3 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-05/0.2327, allocations: 22.28 kB / 488.4 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/0.2332, allocations: 228.9 kB / 488.6 MB, free: 4.027 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.2334, allocations: 228.2 kB / 488.8 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002375/0.2337, allocations: 276 kB / 489.1 MB, free: 3.805 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005569/0.2342, allocations: 0.5344 MB / 489.6 MB, free: 3.691 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2342, allocations: 5.312 kB / 489.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2342, allocations: 0.6562 kB / 489.6 MB, free: 3.688 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.2342, allocations: 0 / 489.6 MB, free: 3.688 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001111/0.2354, allocations: 0.7826 MB / 490.4 MB, free: 3.094 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2354, allocations: 8.906 kB / 490.4 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.2355, allocations: 93.62 kB / 490.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/0.236, allocations: 101.4 kB / 490.6 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.2365, allocations: 414.7 kB / 491 MB, free: 2.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.2365, allocations: 34.42 kB / 491 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.539e-05/0.2366, allocations: 46.61 kB / 491.1 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2378, allocations: 0.8545 MB / 491.9 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.2378, allocations: 5.875 kB / 491.9 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.2379, allocations: 22.36 kB / 492 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.238, allocations: 59.23 kB / 492 MB, free: 2.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.2391, allocations: 0.7908 MB / 492.8 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.2421, allocations: 2.732 MB / 495.5 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008033/0.243, allocations: 0.5745 MB / 496.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005174/0.2435, allocations: 455.7 kB / 496.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.2435, allocations: 12.44 kB / 496.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.2436, allocations: 38.67 kB / 496.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.344e-06/0.2436, allocations: 0 / 496.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.002775/0.2464, allocations: 1.88 MB / 498.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.2465, allocations: 144.2 kB / 498.6 MB, free: 14.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.2468, allocations: 295.8 kB / 498.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.2468, allocations: 32.55 kB / 499 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.247, allocations: 259.6 kB / 499.2 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.2471, allocations: 186.5 kB / 499.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.2472, allocations: 6.938 kB / 499.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2473, allocations: 351.5 kB / 499.7 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004453/0.2477, allocations: 342.6 kB / 0.4884 GB, free: 13.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005229/0.2483, allocations: 489.6 kB / 0.4888 GB, free: 13.44 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.2493, allocations: 0.976 MB / 0.4898 GB, free: 12.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2494, allocations: 1.125 kB / 0.4898 GB, free: 12.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00135/0.2507, allocations: 0.9759 MB / 0.4907 GB, free: 12.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.208e-05/0.2508, allocations: 79.62 kB / 0.4908 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.2508, allocations: 4.562 kB / 0.4908 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000169/0.251, allocations: 40.12 kB / 0.4908 GB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00033/0.2513, allocations: 87.81 kB / 0.4909 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.2524, allocations: 1.442 MB / 0.4923 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.2528, allocations: 33.06 kB / 0.4924 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.263e-05/0.2528, allocations: 28.58 kB / 0.4924 GB, free: 10.83 MB / 330.7 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[1],voltage.h_mod3[2],voltage.h_mod3[3],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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003693/0.2532, allocations: 310 kB / 0.4927 GB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.771e-05/0.2533, allocations: 40.59 kB / 0.4927 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.2548, allocations: 1.071 MB / 0.4938 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.2548, allocations: 10.44 kB / 0.4938 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2548, allocations: 9.812 kB / 0.4938 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.2549, allocations: 3.938 kB / 0.4938 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.2572, allocations: 1.8 MB / 0.4956 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2572, allocations: 1.609 kB / 0.4956 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.2575, allocations: 53.06 kB / 0.4956 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.2576, allocations: 42.5 kB / 0.4957 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.2576, allocations: 15.36 kB / 0.4957 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.2587, allocations: 1.431 MB / 0.4971 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2587, allocations: 5.312 kB / 0.4971 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.2601, allocations: 1.167 MB / 0.4982 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.2603, allocations: 172.7 kB / 0.4984 GB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.437e-05/0.2604, allocations: 15.58 kB / 0.4984 GB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.2606, allocations: 25.16 kB / 0.4984 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.2608, allocations: 44.55 kB / 0.4985 GB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/0.2608, allocations: 21.95 kB / 0.4985 GB, free: 6.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001827/0.261, allocations: 204.9 kB / 0.4987 GB, free: 6.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.261, allocations: 0 / 0.4987 GB, free: 6.488 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005747/0.2616, allocations: 141.4 kB / 0.4988 GB, free: 6.355 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001728/0.2634, allocations: 1.766 MB / 0.5005 GB, free: 4.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.2649, allocations: 1.371 MB / 0.5019 GB, free: 3.152 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2649, allocations: 3.938 kB / 0.5019 GB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008866/0.2658, allocations: 0.9175 MB / 0.5028 GB, free: 2.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005174/0.2663, allocations: 72.39 kB / 0.5028 GB, free: 2.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004689/0.271, allocations: 3.965 MB / 0.5067 GB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.2714, allocations: 0.9054 MB / 0.5076 GB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002262/0.2717, allocations: 163.3 kB / 0.5077 GB, free: 12.95 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2717, allocations: 0 / 0.5077 GB, free: 12.95 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.139/4.411, allocations: 9.249 MB / 0.5168 GB, free: 3.688 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)