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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001437/0.001437, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.763/1.763, allocations: 194.3 MB / 203.1 MB, free: 13.04 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001739/0.001739, allocations: 127.9 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1986/0.1986, allocations: 37.93 MB / 330.9 MB, free: 2.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.975e-05/1.977e-05, allocations: 4 kB / 390.5 MB, free: 7.008 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3223, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1357/0.4581, allocations: 95.93 MB / 0.527 GB, free: 1.613 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.4585, allocations: 87.94 kB / 0.5271 GB, free: 1.527 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3248/0.7833, allocations: 15.59 MB / 0.5423 GB, free: 87.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.7833, allocations: 3.938 kB / 0.5423 GB, free: 87.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.7834, allocations: 12 kB / 0.5423 GB, free: 87.05 MB / 378.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.00118/0.7846, allocations: 0.7824 MB / 0.5431 GB, free: 86.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.7846, allocations: 15.91 kB / 0.5431 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004927/0.7851, allocations: 91.3 kB / 0.5432 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.7864, allocations: 0.6925 MB / 0.5438 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.7865, allocations: 16.34 kB / 0.5439 GB, free: 85.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.25e-05/0.7866, allocations: 31.89 kB / 0.5439 GB, free: 85.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007519/0.7873, allocations: 0.6033 MB / 0.5445 GB, free: 84.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/0.7882, allocations: 0.7778 MB / 0.5452 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.7883, allocations: 0 / 0.5452 GB, free: 83.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.114e-05/0.7883, allocations: 4 kB / 0.5452 GB, free: 83.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.7884, allocations: 60.73 kB / 0.5453 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003103/0.7916, allocations: 2.639 MB / 0.5479 GB, free: 81.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006494/0.7922, allocations: 0.5994 MB / 0.5485 GB, free: 80.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.7926, allocations: 486.8 kB / 0.5489 GB, free: 80.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.7927, allocations: 4 kB / 0.5489 GB, free: 80 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.7927, allocations: 38.83 kB / 0.549 GB, free: 79.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 2.034e-06/0.7927, allocations: 0 / 0.549 GB, free: 79.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.002712/0.7954, allocations: 1.683 MB / 0.5506 GB, free: 78.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.7955, allocations: 134.8 kB / 0.5507 GB, free: 78.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.7958, allocations: 229.2 kB / 0.551 GB, free: 77.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.7958, allocations: 29.7 kB / 0.551 GB, free: 77.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.7959, allocations: 252.4 kB / 0.5512 GB, free: 77.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.7961, allocations: 189.1 kB / 0.5514 GB, free: 77.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.7961, allocations: 4 kB / 0.5514 GB, free: 77.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.7962, allocations: 350.8 kB / 0.5517 GB, free: 77.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.7966, allocations: 377 kB / 0.5521 GB, free: 76.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.7971, allocations: 490.6 kB / 0.5526 GB, free: 76.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008824/0.798, allocations: 0.5584 MB / 0.5531 GB, free: 75.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.798, allocations: 0 / 0.5531 GB, free: 75.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001512/0.7995, allocations: 1.086 MB / 0.5542 GB, free: 74.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.788e-05/0.7996, allocations: 77.59 kB / 0.5542 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.7996, allocations: 4 kB / 0.5543 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001871/0.7998, allocations: 40.83 kB / 0.5543 GB, free: 74.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/0.8002, allocations: 83.88 kB / 0.5544 GB, free: 74.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009538/0.8012, allocations: 1.374 MB / 0.5557 GB, free: 72.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.8015, allocations: 35.89 kB / 0.5557 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.8016, allocations: 24 kB / 0.5558 GB, free: 72.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * 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.0001866/0.8018, allocations: 194.6 kB / 0.556 GB, free: 72.54 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001501/0.8033, allocations: 1.109 MB / 0.557 GB, free: 71.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.194e-05/0.8034, allocations: 47.5 kB / 0.5571 GB, free: 71.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.805, allocations: 1.134 MB / 0.5582 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.36e-05/0.8051, allocations: 31.97 kB / 0.5582 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.8051, allocations: 0 / 0.5582 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.8051, allocations: 0 / 0.5582 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.8075, allocations: 1.79 MB / 0.56 GB, free: 68.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.8075, allocations: 0 / 0.56 GB, free: 68.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.8077, allocations: 59.89 kB / 0.56 GB, free: 68.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/0.8079, allocations: 36.84 kB / 0.5601 GB, free: 68.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.458e-05/0.8079, allocations: 7.984 kB / 0.5601 GB, free: 68.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008403/0.8088, allocations: 1.37 MB / 0.5614 GB, free: 66.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.8088, allocations: 0 / 0.5614 GB, free: 66.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.8104, allocations: 1.28 MB / 0.5627 GB, free: 65.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002353/0.8106, allocations: 188.5 kB / 0.5628 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.785e-05/0.8107, allocations: 8 kB / 0.5628 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.811, allocations: 27.95 kB / 0.5629 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.8111, allocations: 47.88 kB / 0.5629 GB, free: 65.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.326e-05/0.8112, allocations: 16 kB / 0.5629 GB, free: 65.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.8113, allocations: 188.6 kB / 0.5631 GB, free: 64.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8113, allocations: 0 / 0.5631 GB, free: 64.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006472/0.812, allocations: 159.9 kB / 0.5633 GB, free: 64.81 MB / 378.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 3 * 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.001961/0.814, allocations: 2.065 MB / 0.5653 GB, free: 62.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.8154, allocations: 1.407 MB / 0.5667 GB, free: 61.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.8154, allocations: 0 / 0.5667 GB, free: 61.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008229/0.8162, allocations: 0.9526 MB / 0.5676 GB, free: 60.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004468/0.8167, allocations: 70.5 kB / 0.5677 GB, free: 60.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.8188, allocations: 1.34 MB / 0.569 GB, free: 58.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.8192, allocations: 0.918 MB / 0.5699 GB, free: 57.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002888/0.8195, allocations: 103.2 kB / 0.57 GB, free: 57.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.8197, allocations: 159.4 kB / 0.5701 GB, free: 57.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.8197, allocations: 0 / 0.5701 GB, free: 57.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.8505, allocations: 9.6 MB / 0.5795 GB, free: 48.04 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/0.8508, allocations: 137.3 kB / 0.5796 GB, free: 47.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/3.031, allocations: 0 / 0.5796 GB, free: 47.84 MB / 378.7 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/linux/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)