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.0009294/0.0009295, allocations: 88.16 kB / 16.31 MB, free: 5.539 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.0009613/0.0009615, allocations: 183.6 kB / 17.21 MB, free: 5.457 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.706/1.706, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1793/0.1793, allocations: 38.05 MB / 309.7 MB, free: 6.109 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.0005548/0.0005549, allocations: 23.12 kB / 376.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2818, allocations: 56.33 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004127/0.2859, allocations: 4.549 MB / 437.5 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.2879, allocations: 1.544 MB / 439 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.2882, allocations: 27.81 kB / 439.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002327/0.2884, allocations: 83.38 kB / 439.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005559/0.289, allocations: 294.6 kB / 439.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005093/0.2895, allocations: 247.5 kB / 439.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000539/0.29, allocations: 0.7833 MB / 440.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005601/0.2906, allocations: 383.5 kB / 440.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.2909, allocations: 246.9 kB / 441.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004939/0.2914, allocations: 410.8 kB / 441.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.14e-05/0.2915, allocations: 24 kB / 441.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.2918, allocations: 163.7 kB / 441.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.292, allocations: 227.5 kB / 441.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.2921, allocations: 117.4 kB / 442 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000411/0.2925, allocations: 0.5378 MB / 442.5 MB, free: 9.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2925, allocations: 4 kB / 442.5 MB, free: 9.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2925, allocations: 0 / 442.5 MB, free: 9.156 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.2925, allocations: 0 / 442.5 MB, free: 9.156 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.001191/0.2937, allocations: 0.7987 MB / 443.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2938, allocations: 11.97 kB / 443.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.2939, allocations: 90.52 kB / 443.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004829/0.2944, allocations: 99.16 kB / 443.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.2949, allocations: 402.9 kB / 443.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.2949, allocations: 29 kB / 444 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.403e-05/0.295, allocations: 47.84 kB / 444 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000914/0.2959, allocations: 0.8629 MB / 444.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.2959, allocations: 0 / 444.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.457e-05/0.296, allocations: 16 kB / 444.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.2961, allocations: 64.95 kB / 444.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008787/0.297, allocations: 0.7962 MB / 445.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.2996, allocations: 2.73 MB / 448.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006592/0.3003, allocations: 0.5798 MB / 449 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003771/0.3007, allocations: 454.7 kB / 449.5 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.3007, allocations: 4 kB / 449.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.3008, allocations: 38.5 kB / 449.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.753e-06/0.3008, allocations: 0 / 449.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002342/0.3031, allocations: 1.899 MB / 451.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/0.3032, allocations: 134.8 kB / 451.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.3035, allocations: 292.4 kB / 451.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.3036, allocations: 33.83 kB / 451.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.3037, allocations: 272.1 kB / 452.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.3039, allocations: 185.3 kB / 452.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.3039, allocations: 12 kB / 452.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.304, allocations: 350.8 kB / 452.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.3045, allocations: 340.9 kB / 453 MB, free: 14.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.305, allocations: 485.8 kB / 453.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.3056, allocations: 464.5 kB / 453.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3056, allocations: 4 kB / 453.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001339/0.3069, allocations: 0.977 MB / 454.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.822e-05/0.307, allocations: 77.75 kB / 455 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.307, allocations: 4 kB / 455 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.3072, allocations: 44.83 kB / 455.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.3076, allocations: 87.83 kB / 455.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.3088, allocations: 1.444 MB / 456.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3091, allocations: 31.97 kB / 456.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.3092, allocations: 24 kB / 456.6 MB, free: 10.4 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[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.0003734/0.3096, allocations: 307.2 kB / 456.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.3097, allocations: 47.5 kB / 457 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.3112, allocations: 1.072 MB / 458.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/0.3112, allocations: 19.98 kB / 458.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3112, allocations: 3.953 kB / 458.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3112, allocations: 144 / 458.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.3137, allocations: 1.8 MB / 459.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3137, allocations: 3.984 kB / 459.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3139, allocations: 55.89 kB / 459.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.3141, allocations: 36.83 kB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/0.3141, allocations: 16 kB / 460 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.3152, allocations: 1.425 MB / 461.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3152, allocations: 0 / 461.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3167, allocations: 1.183 MB / 462.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.3169, allocations: 176.6 kB / 462.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/0.317, allocations: 12 kB / 462.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.3173, allocations: 27.97 kB / 462.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.3174, allocations: 43.89 kB / 462.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.453e-05/0.3175, allocations: 16 kB / 462.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002627/0.3178, allocations: 211 kB / 463.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3178, allocations: 0 / 463.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006845/0.3185, allocations: 144 kB / 463.2 MB, free: 3.535 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 (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.002254/0.3207, allocations: 1.762 MB / 465 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.3226, allocations: 1.37 MB / 466.3 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3226, allocations: 4.188 kB / 466.3 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.3238, allocations: 0.9258 MB / 467.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.3244, allocations: 65.56 kB / 467.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006459/0.3308, allocations: 3.921 MB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.3313, allocations: 0.9054 MB / 472.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003042/0.3317, allocations: 115.2 kB / 472.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.3319, allocations: 151.4 kB / 472.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.895e-06/0.3319, allocations: 0 / 472.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.3573, allocations: 9.638 MB / 482.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.3576, allocations: 192.6 kB / 482.3 MB, free: 268 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.206, allocations: 4.062 kB / 482.3 MB, free: 264 kB / 350.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/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) Environment - environmentSimulation: