Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001816/0.001816, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.002061/0.002061, allocations: 212.9 kB / 23.74 MB, free: 4.688 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1854/0.1854, allocations: 38.54 MB / 352.5 MB, free: 12.58 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.002991/0.002991, allocations: 67.89 kB / 492.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3731, allocations: 62.48 MB / 0.542 GB, free: 476 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005737/0.3789, allocations: 4.214 MB / 0.5461 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3805, allocations: 0.956 MB / 0.5471 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.3807, allocations: 18.59 kB / 0.5471 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.3809, allocations: 44.56 kB / 0.5471 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005024/0.3814, allocations: 181.6 kB / 0.5473 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.3816, allocations: 96.31 kB / 0.5474 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.382, allocations: 398.8 kB / 0.5478 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.3822, allocations: 83.08 kB / 0.5478 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003044/0.3825, allocations: 184.2 kB / 0.548 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.3829, allocations: 190.6 kB / 0.5482 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.3829, allocations: 20.28 kB / 0.5482 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.483e-05/0.383, allocations: 18.94 kB / 0.5482 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.3831, allocations: 96.42 kB / 0.5483 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.3832, allocations: 144 kB / 0.5485 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.3836, allocations: 288.5 kB / 0.5487 GB, free: 11.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3836, allocations: 0 / 0.5487 GB, free: 11.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3836, allocations: 0 / 0.5487 GB, free: 11.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3836, allocations: 1.469 kB / 0.5487 GB, free: 11.29 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009821/0.3846, allocations: 0.5317 MB / 0.5493 GB, free: 10.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3846, allocations: 12.64 kB / 0.5493 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.109e-05/0.3847, allocations: 62.23 kB / 0.5493 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.3847, allocations: 32.81 kB / 0.5494 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.3853, allocations: 275.4 kB / 0.5496 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.3853, allocations: 20.81 kB / 0.5497 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.3853, allocations: 25.77 kB / 0.5497 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004358/0.3858, allocations: 289.7 kB / 0.55 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3858, allocations: 7.875 kB / 0.55 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.3858, allocations: 11.78 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.3858, allocations: 5.094 kB / 0.55 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.3861, allocations: 178.7 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3876, allocations: 1.193 MB / 0.5513 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.3879, allocations: 102 kB / 0.5514 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.077e-05/0.388, allocations: 41.39 kB / 0.5514 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.388, allocations: 5.203 kB / 0.5515 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.388, allocations: 40.78 kB / 0.5515 GB, free: 8.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.388, allocations: 0 / 0.5515 GB, free: 8.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008473/0.3889, allocations: 411.7 kB / 0.5519 GB, free: 8.598 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.389, allocations: 82.61 kB / 0.552 GB, free: 8.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.3892, allocations: 243.6 kB / 0.5522 GB, free: 8.332 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.3893, allocations: 35.3 kB / 0.5522 GB, free: 8.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.3894, allocations: 200.4 kB / 0.5524 GB, free: 8.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.3895, allocations: 37.66 kB / 0.5525 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.3895, allocations: 48.19 kB / 0.5525 GB, free: 8.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3897, allocations: 331.8 kB / 0.5528 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.242e-05/0.3898, allocations: 38.77 kB / 0.5529 GB, free: 7.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.3899, allocations: 129.5 kB / 0.553 GB, free: 7.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.3902, allocations: 200.8 kB / 0.5532 GB, free: 7.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3902, allocations: 1.094 kB / 0.5532 GB, free: 7.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000328/0.3905, allocations: 209.6 kB / 0.5534 GB, free: 7.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3905, allocations: 6.625 kB / 0.5534 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3905, allocations: 8.219 kB / 0.5534 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.3906, allocations: 4.375 kB / 0.5534 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.3907, allocations: 42.77 kB / 0.5534 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3907, allocations: 8.234 kB / 0.5534 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3908, allocations: 12.69 kB / 0.5535 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.3909, allocations: 11.94 kB / 0.5535 GB, free: 7.207 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 (24): * Single equations (assignments): 24 * 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.0001647/0.391, allocations: 156.6 kB / 0.5536 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/0.3911, allocations: 23.11 kB / 0.5536 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.3913, allocations: 129.2 kB / 0.5538 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.3913, allocations: 2.469 kB / 0.5538 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3913, allocations: 0 / 0.5538 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.3914, allocations: 9.359 kB / 0.5538 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000589/0.3919, allocations: 452.2 kB / 0.5542 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3919, allocations: 1.125 kB / 0.5542 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.3921, allocations: 26.61 kB / 0.5542 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3921, allocations: 1.094 kB / 0.5542 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3921, allocations: 10.09 kB / 0.5542 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3921, allocations: 1.062 kB / 0.5542 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3921, allocations: 1.062 kB / 0.5542 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.3924, allocations: 282.8 kB / 0.5545 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.3925, allocations: 21.89 kB / 0.5545 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.3925, allocations: 6.188 kB / 0.5545 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.3926, allocations: 1.125 kB / 0.5545 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.3926, allocations: 11.55 kB / 0.5545 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3927, allocations: 7.625 kB / 0.5546 GB, free: 6.281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.3928, allocations: 173.8 kB / 0.5547 GB, free: 6.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3928, allocations: 0 / 0.5547 GB, free: 6.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.3932, allocations: 43.12 kB / 0.5548 GB, free: 6.152 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0006564/0.3938, allocations: 0.8116 MB / 0.5556 GB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.394, allocations: 121 kB / 0.5557 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.394, allocations: 0 / 0.5557 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.611e-05/0.3941, allocations: 44.48 kB / 0.5557 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.3946, allocations: 56.48 kB / 0.5558 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.3975, allocations: 2.454 MB / 0.5582 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.3979, allocations: 0.7693 MB / 0.5589 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.398, allocations: 34.28 kB / 0.5589 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.3982, allocations: 83.41 kB / 0.559 GB, free: 2.395 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3982, allocations: 4 kB / 0.559 GB, free: 2.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.4316, allocations: 4.841 MB / 0.5638 GB, free: 13.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.27, allocations: 17.81 kB / 0.5638 GB, free: 13.68 MB / 414.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.i in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.i from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.166814218006039]