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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2469/0.2469, allocations: 38.56 MB / 352.5 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 59.91 kB / 492.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.375, allocations: 62.46 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.007825/0.3828, allocations: 3.992 MB / 0.5458 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.3845, allocations: 0.8698 MB / 0.5467 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.3847, allocations: 20.06 kB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.3849, allocations: 47.69 kB / 0.5467 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00056/0.3855, allocations: 185.4 kB / 0.5469 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.3857, allocations: 87.08 kB / 0.547 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004988/0.3862, allocations: 407.8 kB / 0.5474 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.3864, allocations: 78.88 kB / 0.5475 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003782/0.3868, allocations: 201.9 kB / 0.5477 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.3872, allocations: 204.3 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.3872, allocations: 20.91 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.683e-05/0.3873, allocations: 21.25 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.3874, allocations: 106.6 kB / 0.548 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3876, allocations: 123.5 kB / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.3881, allocations: 328.8 kB / 0.5484 GB, free: 11.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3881, allocations: 0 / 0.5484 GB, free: 11.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3881, allocations: 0 / 0.5484 GB, free: 11.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3881, allocations: 0 / 0.5484 GB, free: 11.35 MB / 398.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.001226/0.3893, allocations: 0.549 MB / 0.549 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3893, allocations: 13.3 kB / 0.549 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/0.3894, allocations: 70.8 kB / 0.549 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.3895, allocations: 37.34 kB / 0.5491 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.39, allocations: 279.2 kB / 0.5494 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.39, allocations: 18.38 kB / 0.5494 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.3901, allocations: 26.19 kB / 0.5494 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.3906, allocations: 314.6 kB / 0.5497 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3906, allocations: 1.312 kB / 0.5497 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.3906, allocations: 10.75 kB / 0.5497 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3906, allocations: 6.031 kB / 0.5497 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003604/0.391, allocations: 214.5 kB / 0.5499 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.3927, allocations: 1.274 MB / 0.5512 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.3931, allocations: 135 kB / 0.5513 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.786e-05/0.3932, allocations: 57.88 kB / 0.5513 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.3932, allocations: 1.406 kB / 0.5513 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.3932, allocations: 32.06 kB / 0.5514 GB, free: 8.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.3933, allocations: 1.25 kB / 0.5514 GB, free: 8.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.000798/0.394, allocations: 383.6 kB / 0.5517 GB, free: 8.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.3941, allocations: 79.92 kB / 0.5518 GB, free: 8.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.3944, allocations: 265.6 kB / 0.5521 GB, free: 8.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3944, allocations: 26.61 kB / 0.5521 GB, free: 8.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.3946, allocations: 209.3 kB / 0.5523 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.3947, allocations: 46.33 kB / 0.5523 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.732e-05/0.3947, allocations: 45.44 kB / 0.5524 GB, free: 8.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3949, allocations: 341.5 kB / 0.5527 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.395, allocations: 59.55 kB / 0.5528 GB, free: 7.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3952, allocations: 146.9 kB / 0.5529 GB, free: 7.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/0.3955, allocations: 238.9 kB / 0.5531 GB, free: 7.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3955, allocations: 1.312 kB / 0.5531 GB, free: 7.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004119/0.3959, allocations: 238.8 kB / 0.5534 GB, free: 7.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.396, allocations: 10.59 kB / 0.5534 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.396, allocations: 2.438 kB / 0.5534 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.396, allocations: 4.969 kB / 0.5534 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.3962, allocations: 52.84 kB / 0.5534 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.3962, allocations: 4.562 kB / 0.5534 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.3963, allocations: 8.859 kB / 0.5534 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.3964, allocations: 17.16 kB / 0.5535 GB, free: 7.188 MB / 398.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.0001935/0.3966, allocations: 158.9 kB / 0.5536 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.3966, allocations: 26.84 kB / 0.5536 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004006/0.397, allocations: 202.2 kB / 0.5538 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.397, allocations: 6.469 kB / 0.5538 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.397, allocations: 0.9375 kB / 0.5538 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.397, allocations: 1.188 kB / 0.5538 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008167/0.3978, allocations: 0.5074 MB / 0.5543 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3978, allocations: 3.938 kB / 0.5543 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.398, allocations: 27.58 kB / 0.5544 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.398, allocations: 1.562 kB / 0.5544 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.398, allocations: 5.438 kB / 0.5544 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.398, allocations: 5.125 kB / 0.5544 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.398, allocations: 8.969 kB / 0.5544 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.3984, allocations: 302.4 kB / 0.5547 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.3985, allocations: 26.78 kB / 0.5547 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/0.3985, allocations: 6.188 kB / 0.5547 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3986, allocations: 9.031 kB / 0.5547 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.3987, allocations: 13.58 kB / 0.5547 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.3987, allocations: 3.625 kB / 0.5547 GB, free: 6.184 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.3989, allocations: 184 kB / 0.5549 GB, free: 6.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3989, allocations: 1.25 kB / 0.5549 GB, free: 6.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.3993, allocations: 47.72 kB / 0.555 GB, free: 6.051 MB / 398.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.0007242/0.4, allocations: 0.8297 MB / 0.5558 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000323/0.4003, allocations: 156.4 kB / 0.5559 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4003, allocations: 0 / 0.5559 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.4005, allocations: 66.23 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005188/0.401, allocations: 67.88 kB / 0.556 GB, free: 5.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.4042, allocations: 2.557 MB / 0.5585 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.4044, allocations: 174.1 kB / 0.5587 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.4046, allocations: 42.27 kB / 0.5587 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.4047, allocations: 87.41 kB / 0.5588 GB, free: 2.266 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4047, allocations: 3.938 kB / 0.5588 GB, free: 2.262 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.4392, allocations: 5.731 MB / 0.5644 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.64, allocations: 15.28 kB / 0.5644 GB, free: 12.67 MB / 414.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.612980942009017] Failed to read output from testmodel.py, exit status != 0: 11.765555441030301 11.782056052 11.390678436 Calling exit ...