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.0007826/0.0007824, allocations: 90.78 kB / 16.65 MB, free: 6.348 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.00101/0.00101, allocations: 180.7 kB / 17.56 MB, free: 5.949 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.292/1.292, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1718/0.1718, allocations: 38.05 MB / 310.1 MB, free: 5.91 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.0005193/0.0005193, allocations: 12 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2156, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.003809/0.2194, allocations: 4.768 MB / 438.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.2213, allocations: 1.637 MB / 440 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.2215, allocations: 23.81 kB / 440 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.2217, allocations: 63.55 kB / 440.1 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000463/0.2221, allocations: 262.9 kB / 440.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.2226, allocations: 223.6 kB / 440.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007812/0.2234, allocations: 1.01 MB / 441.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005689/0.224, allocations: 413.1 kB / 442 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.2243, allocations: 238.9 kB / 442.2 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.2247, allocations: 406.8 kB / 442.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.583e-05/0.2248, allocations: 23.94 kB / 442.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004079/0.2252, allocations: 231.6 kB / 442.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2254, allocations: 235.4 kB / 443.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2256, allocations: 284.2 kB / 443.4 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004492/0.226, allocations: 0.7046 MB / 444.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.226, allocations: 8 kB / 444.1 MB, free: 8.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.226, allocations: 0 / 444.1 MB, free: 8.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.226, allocations: 0 / 444.1 MB, free: 8.102 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.001074/0.2271, allocations: 0.7832 MB / 444.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2272, allocations: 12.03 kB / 444.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.849e-05/0.2273, allocations: 98.67 kB / 445 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004748/0.2277, allocations: 92.14 kB / 445.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.2282, allocations: 423.9 kB / 445.5 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.2282, allocations: 29.38 kB / 445.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.118e-05/0.2283, allocations: 43.92 kB / 445.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.2292, allocations: 0.8591 MB / 446.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.2292, allocations: 4 kB / 446.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.2293, allocations: 19.92 kB / 446.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001154/0.2294, allocations: 68.95 kB / 446.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008391/0.2302, allocations: 0.7962 MB / 447.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.2327, allocations: 2.726 MB / 450 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.2333, allocations: 0.5837 MB / 450.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.2337, allocations: 450.7 kB / 451 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2337, allocations: 7.922 kB / 451 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.2338, allocations: 38.56 kB / 451.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.753e-06/0.2338, allocations: 0 / 451.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002444/0.2362, allocations: 1.879 MB / 453 MB, free: 14.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.102e-05/0.2363, allocations: 146.7 kB / 453.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.2366, allocations: 296.4 kB / 453.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.2367, allocations: 33.7 kB / 453.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.2368, allocations: 260.4 kB / 453.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.2369, allocations: 185.3 kB / 453.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.072e-05/0.237, allocations: 49.7 kB / 453.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2372, allocations: 354.8 kB / 454.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000441/0.2376, allocations: 340.9 kB / 454.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.2381, allocations: 485.8 kB / 455.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.2393, allocations: 0.9798 MB / 456 MB, free: 11.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2393, allocations: 4 kB / 456 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001314/0.2406, allocations: 0.9732 MB / 457 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.2407, allocations: 77.66 kB / 457.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2407, allocations: 11.94 kB / 457.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001849/0.2409, allocations: 44.83 kB / 457.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.2412, allocations: 87.83 kB / 457.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.2424, allocations: 1.437 MB / 458.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.2427, allocations: 43.86 kB / 458.7 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.79e-05/0.2428, allocations: 24 kB / 458.7 MB, free: 8.723 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.000331/0.2432, allocations: 311.1 kB / 459 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.472e-05/0.2433, allocations: 43.53 kB / 459.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.2447, allocations: 1.076 MB / 460.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.2447, allocations: 12 kB / 460.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2447, allocations: 3.938 kB / 460.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.2448, allocations: 7.984 kB / 460.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.247, allocations: 1.796 MB / 462 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2471, allocations: 4 kB / 462 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.2473, allocations: 55.89 kB / 462 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-05/0.2474, allocations: 36.84 kB / 462.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.2475, allocations: 11.98 kB / 462.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.2485, allocations: 1.441 MB / 463.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2486, allocations: 3.938 kB / 463.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.25, allocations: 1.175 MB / 464.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.2502, allocations: 180.5 kB / 464.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.2503, allocations: 12 kB / 464.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.2505, allocations: 31.91 kB / 464.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.2506, allocations: 47.88 kB / 465 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.2507, allocations: 12 kB / 465 MB, free: 2.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.251, allocations: 207.1 kB / 465.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.251, allocations: 0 / 465.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.2516, allocations: 144 kB / 465.3 MB, free: 1.84 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.001847/0.2534, allocations: 1.762 MB / 467.1 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.2551, allocations: 1.37 MB / 468.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2551, allocations: 0 / 468.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009694/0.2561, allocations: 0.9297 MB / 469.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.2566, allocations: 73.45 kB / 469.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00692/0.2636, allocations: 6.099 MB / 475.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.2641, allocations: 0.9054 MB / 476.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002926/0.2644, allocations: 103.2 kB / 476.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.2646, allocations: 159.4 kB / 476.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2646, allocations: 0 / 476.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.2854, allocations: 9.56 MB / 486.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.2856, allocations: 207.7 kB / 486.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.298, allocations: 0 / 486.5 MB, free: 12.34 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)