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.001652/0.001652, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002577/0.002577, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.1843/0.1843, allocations: 38.52 MB / 352.5 MB, free: 12.54 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.002061/0.002061, allocations: 67.89 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3412, allocations: 62.47 MB / 0.542 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006315/0.3475, allocations: 4.223 MB / 0.5461 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.3495, allocations: 0.9444 MB / 0.5471 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.3498, allocations: 22.91 kB / 0.5471 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.35, allocations: 47.94 kB / 0.5471 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005509/0.3506, allocations: 178.2 kB / 0.5473 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.3508, allocations: 96.5 kB / 0.5474 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.3513, allocations: 402.7 kB / 0.5478 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.3515, allocations: 82.98 kB / 0.5478 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003285/0.3518, allocations: 188.1 kB / 0.548 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000357/0.3522, allocations: 190.4 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.3522, allocations: 19.91 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.195e-05/0.3523, allocations: 19.25 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.3524, allocations: 93.44 kB / 0.5483 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.3526, allocations: 138.8 kB / 0.5485 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004146/0.353, allocations: 288.7 kB / 0.5487 GB, free: 11.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.353, allocations: 4 kB / 0.5487 GB, free: 11.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.353, allocations: 1.094 kB / 0.5487 GB, free: 11.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.353, allocations: 3.938 kB / 0.5488 GB, free: 11.23 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.001169/0.3542, allocations: 0.5315 MB / 0.5493 GB, free: 10.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3542, allocations: 14.11 kB / 0.5493 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.478e-05/0.3543, allocations: 57.94 kB / 0.5493 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.3544, allocations: 35.97 kB / 0.5494 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.3549, allocations: 279.2 kB / 0.5496 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.355, allocations: 21.34 kB / 0.5497 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.355, allocations: 18.31 kB / 0.5497 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.3555, allocations: 289.1 kB / 0.55 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3555, allocations: 9.031 kB / 0.55 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.3555, allocations: 6.719 kB / 0.55 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3555, allocations: 5.5 kB / 0.55 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3558, allocations: 177.3 kB / 0.5501 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3574, allocations: 1.19 MB / 0.5513 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.3577, allocations: 110 kB / 0.5514 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.814e-05/0.3577, allocations: 42.8 kB / 0.5515 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3578, allocations: 1.344 kB / 0.5515 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.3578, allocations: 35.69 kB / 0.5515 GB, free: 8.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.3578, allocations: 0 / 0.5515 GB, free: 8.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008213/0.3586, allocations: 415.3 kB / 0.5519 GB, free: 8.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.3587, allocations: 79.83 kB / 0.552 GB, free: 8.461 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.359, allocations: 247 kB / 0.5522 GB, free: 8.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.359, allocations: 30.92 kB / 0.5522 GB, free: 8.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.3591, allocations: 204.9 kB / 0.5524 GB, free: 8.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.3592, allocations: 41.45 kB / 0.5525 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.16e-05/0.3593, allocations: 52.12 kB / 0.5525 GB, free: 7.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3594, allocations: 332.6 kB / 0.5528 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.618e-05/0.3595, allocations: 38.44 kB / 0.5529 GB, free: 7.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.3596, allocations: 132.9 kB / 0.553 GB, free: 7.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.3599, allocations: 193 kB / 0.5532 GB, free: 7.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3599, allocations: 1 kB / 0.5532 GB, free: 7.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003171/0.3602, allocations: 205.4 kB / 0.5534 GB, free: 7.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3603, allocations: 9.656 kB / 0.5534 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3603, allocations: 8.375 kB / 0.5534 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3603, allocations: 4.5 kB / 0.5534 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.3605, allocations: 46.16 kB / 0.5534 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3605, allocations: 4.906 kB / 0.5534 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.3606, allocations: 11.62 kB / 0.5535 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.3606, allocations: 9.188 kB / 0.5535 GB, free: 7.168 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.0001553/0.3608, allocations: 156.2 kB / 0.5536 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.3608, allocations: 26.19 kB / 0.5536 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.3611, allocations: 133.8 kB / 0.5538 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3611, allocations: 6.891 kB / 0.5538 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3611, allocations: 4 kB / 0.5538 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.3611, allocations: 5.406 kB / 0.5538 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005998/0.3617, allocations: 452.7 kB / 0.5542 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3617, allocations: 0 / 0.5542 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.3618, allocations: 18.72 kB / 0.5542 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3618, allocations: 2.125 kB / 0.5542 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.3618, allocations: 5.219 kB / 0.5542 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3618, allocations: 5.094 kB / 0.5542 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3618, allocations: 4.953 kB / 0.5542 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.3622, allocations: 278.5 kB / 0.5545 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.3622, allocations: 18.77 kB / 0.5545 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.3623, allocations: 9.094 kB / 0.5545 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3624, allocations: 5.375 kB / 0.5545 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.714e-05/0.3624, allocations: 11.52 kB / 0.5546 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.3624, allocations: 8.062 kB / 0.5546 GB, free: 6.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.3626, allocations: 172.9 kB / 0.5547 GB, free: 6.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3626, allocations: 1.312 kB / 0.5547 GB, free: 6.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.3629, allocations: 47.31 kB / 0.5548 GB, free: 6.102 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.0006563/0.3635, allocations: 0.8071 MB / 0.5556 GB, free: 5.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002384/0.3638, allocations: 112.5 kB / 0.5557 GB, free: 5.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3638, allocations: 0.9375 kB / 0.5557 GB, free: 5.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.675e-05/0.3639, allocations: 44.98 kB / 0.5557 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.3644, allocations: 64.58 kB / 0.5558 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.3674, allocations: 2.452 MB / 0.5582 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.3678, allocations: 0.7706 MB / 0.5589 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.368, allocations: 30.28 kB / 0.5589 GB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3681, allocations: 87.39 kB / 0.559 GB, free: 2.348 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3681, allocations: 0 / 0.559 GB, free: 2.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03555/0.4037, allocations: 4.859 MB / 0.5638 GB, free: 13.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.35, allocations: 6.641 kB / 0.5638 GB, free: 13.63 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.231693489011377]