Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.0009096/0.0009095, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001058/0.001058, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.334/1.334, 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.1599/0.1599, allocations: 38.06 MB / 310.1 MB, free: 5.914 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.0005152/0.0005153, allocations: 20 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2067, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.003404/0.2102, allocations: 4.312 MB / 437.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.2114, allocations: 1.111 MB / 439 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.2116, allocations: 23.81 kB / 439 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.2118, allocations: 43.69 kB / 439.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.2121, allocations: 159.3 kB / 439.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.2123, allocations: 83.84 kB / 439.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.2127, allocations: 0.5609 MB / 439.9 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.2129, allocations: 93.7 kB / 440 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.2131, allocations: 155.2 kB / 440.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.2134, allocations: 207.2 kB / 440.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.2134, allocations: 12 kB / 440.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.369e-05/0.2134, allocations: 8 kB / 440.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.812e-05/0.2135, allocations: 99.64 kB / 440.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2137, allocations: 168.8 kB / 440.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.2139, allocations: 294.8 kB / 440.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2139, allocations: 0 / 440.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2139, allocations: 4 kB / 440.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.2139, allocations: 0 / 440.9 MB, free: 11.3 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008112/0.2147, allocations: 0.5623 MB / 441.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2148, allocations: 12.02 kB / 441.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.861e-05/0.2148, allocations: 58.73 kB / 441.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.106e-05/0.2149, allocations: 36.56 kB / 441.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.2152, allocations: 322.9 kB / 441.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.2152, allocations: 20.92 kB / 441.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.2152, allocations: 27.94 kB / 441.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.2156, allocations: 320.5 kB / 442.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2156, allocations: 3.938 kB / 442.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.2156, allocations: 12 kB / 442.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2156, allocations: 8 kB / 442.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.2159, allocations: 209.5 kB / 442.5 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.217, allocations: 1.352 MB / 443.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.2173, allocations: 141.2 kB / 444 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.66e-05/0.2174, allocations: 61.75 kB / 444 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.2174, allocations: 3.984 kB / 444 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.2174, allocations: 38.56 kB / 444.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.2174, allocations: 4 kB / 444.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006173/0.2181, allocations: 367.7 kB / 444.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.2181, allocations: 81.05 kB / 444.5 MB, free: 7.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.2183, allocations: 255 kB / 444.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.2183, allocations: 33.7 kB / 444.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.2184, allocations: 199.6 kB / 445 MB, free: 6.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.2184, allocations: 47.3 kB / 445 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.2184, allocations: 25.83 kB / 445.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.717e-05/0.2185, allocations: 342.8 kB / 445.4 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.475e-05/0.2186, allocations: 51.97 kB / 445.4 MB, free: 6.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.2187, allocations: 148.8 kB / 445.6 MB, free: 6.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.2189, allocations: 235.9 kB / 445.8 MB, free: 5.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2189, allocations: 4 kB / 445.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002725/0.2192, allocations: 241 kB / 446.1 MB, free: 5.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2192, allocations: 11.98 kB / 446.1 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2192, allocations: 4 kB / 446.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.2192, allocations: 4.438 kB / 446.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.2194, allocations: 47.92 kB / 446.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.433e-06/0.2194, allocations: 7.984 kB / 446.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.2195, allocations: 15.94 kB / 446.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.2195, allocations: 11.94 kB / 446.2 MB, free: 5.629 MB / 318.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 (25): * Single equations (assignments): 25 * 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.0001148/0.2197, allocations: 157.8 kB / 446.3 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.2197, allocations: 23.72 kB / 446.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.22, allocations: 195.2 kB / 446.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.22, allocations: 11.98 kB / 446.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.22, allocations: 3.984 kB / 446.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.22, allocations: 0 / 446.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/0.2205, allocations: 0.5577 MB / 447.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2206, allocations: 3.938 kB / 447.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.2207, allocations: 31.98 kB / 447.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2207, allocations: 0 / 447.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.2207, allocations: 7.984 kB / 447.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2207, allocations: 3.938 kB / 447.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2207, allocations: 4.031 kB / 447.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.221, allocations: 296.8 kB / 447.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.221, allocations: 92.83 kB / 447.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.2211, allocations: 4 kB / 447.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.2212, allocations: 11.94 kB / 447.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.2212, allocations: 15.98 kB / 447.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2212, allocations: 4 kB / 447.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.2214, allocations: 182 kB / 447.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2214, allocations: 0 / 447.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.2217, allocations: 48 kB / 447.8 MB, free: 3.879 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0004181/0.2221, allocations: 0.834 MB / 448.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002327/0.2223, allocations: 155.7 kB / 448.8 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2223, allocations: 4.875 kB / 448.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.694e-05/0.2224, allocations: 71.91 kB / 448.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.2229, allocations: 53.48 kB / 448.9 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.225, allocations: 2.682 MB / 451.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.2253, allocations: 0.7794 MB / 452.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.2254, allocations: 42.27 kB / 452.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.2256, allocations: 91.39 kB / 452.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2256, allocations: 0 / 452.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.2396, allocations: 4.559 MB / 457.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.2399, allocations: 205.7 kB / 457.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.927, allocations: 0 / 457.3 MB, free: 10.17 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)