Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002022/0.002022, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2042/0.2042, allocations: 38.5 MB / 342.5 MB, free: 8.086 MB / 270.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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 66.69 kB / 478.6 MB, free: 33.88 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1217, allocations: 61.24 MB / 0.5272 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006085/0.1278, allocations: 3.947 MB / 0.5311 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1293, allocations: 0.8845 MB / 0.5319 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.1295, allocations: 11.94 kB / 0.5319 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.1297, allocations: 43.58 kB / 0.532 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.1301, allocations: 167.1 kB / 0.5321 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.1303, allocations: 79.84 kB / 0.5322 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004421/0.1308, allocations: 382.6 kB / 0.5326 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.131, allocations: 72.55 kB / 0.5327 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1312, allocations: 163.3 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.1315, allocations: 167.3 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.1316, allocations: 20 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.869e-05/0.1316, allocations: 16 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1317, allocations: 95.64 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1318, allocations: 123.3 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.1322, allocations: 254.8 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1322, allocations: 0 / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1322, allocations: 0 / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1322, allocations: 4 kB / 0.5335 GB, free: 10.97 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009223/0.1331, allocations: 0.5658 MB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1332, allocations: 11.89 kB / 0.534 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.413e-05/0.1332, allocations: 58.72 kB / 0.5341 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.1333, allocations: 28.75 kB / 0.5341 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/0.1338, allocations: 335.9 kB / 0.5344 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.1338, allocations: 16.44 kB / 0.5344 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.1339, allocations: 16 kB / 0.5345 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004088/0.1343, allocations: 270 kB / 0.5347 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1343, allocations: 0 / 0.5347 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.1343, allocations: 12 kB / 0.5347 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.1343, allocations: 4 kB / 0.5347 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.1346, allocations: 159.8 kB / 0.5349 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.136, allocations: 1.187 MB / 0.536 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.1361, allocations: 73.11 kB / 0.5361 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.062e-05/0.1362, allocations: 33.75 kB / 0.5361 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.1362, allocations: 0 / 0.5361 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.1362, allocations: 38.56 kB / 0.5362 GB, free: 7.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.1362, allocations: 0 / 0.5362 GB, free: 7.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007144/0.137, allocations: 417.7 kB / 0.5366 GB, free: 7.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.137, allocations: 77.11 kB / 0.5367 GB, free: 7.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.1373, allocations: 250.5 kB / 0.5369 GB, free: 7.121 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1373, allocations: 33.77 kB / 0.5369 GB, free: 7.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.1374, allocations: 200 kB / 0.5371 GB, free: 6.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.1374, allocations: 27.78 kB / 0.5371 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.1375, allocations: 45.66 kB / 0.5372 GB, free: 6.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1377, allocations: 326.8 kB / 0.5375 GB, free: 6.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/0.1377, allocations: 28.11 kB / 0.5375 GB, free: 6.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.1378, allocations: 123.9 kB / 0.5376 GB, free: 6.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.138, allocations: 172.6 kB / 0.5378 GB, free: 6.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.138, allocations: 0 / 0.5378 GB, free: 6.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002898/0.1383, allocations: 185.5 kB / 0.538 GB, free: 5.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1383, allocations: 11.94 kB / 0.538 GB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1384, allocations: 4 kB / 0.538 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1384, allocations: 4 kB / 0.538 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1385, allocations: 39.92 kB / 0.538 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1385, allocations: 4 kB / 0.538 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.09e-05/0.1386, allocations: 8 kB / 0.5381 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.1386, allocations: 8 kB / 0.5381 GB, free: 5.805 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 (22): * Single equations (assignments): 22 * 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.0001466/0.1388, allocations: 153.9 kB / 0.5382 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.326e-05/0.1388, allocations: 27.8 kB / 0.5382 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.139, allocations: 99.3 kB / 0.5383 GB, free: 5.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.139, allocations: 0 / 0.5383 GB, free: 5.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.139, allocations: 4 kB / 0.5383 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.139, allocations: 0 / 0.5383 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004879/0.1395, allocations: 415.3 kB / 0.5387 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1395, allocations: 4 kB / 0.5387 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.762e-05/0.1396, allocations: 23.95 kB / 0.5388 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.1396, allocations: 0 / 0.5388 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1396, allocations: 8 kB / 0.5388 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1396, allocations: 0 / 0.5388 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1396, allocations: 0 / 0.5388 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.1398, allocations: 232.9 kB / 0.539 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.1399, allocations: 101 kB / 0.5391 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.1399, allocations: 4 kB / 0.5391 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.14, allocations: 4 kB / 0.5391 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.812e-05/0.1401, allocations: 7.984 kB / 0.5391 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.1401, allocations: 4 kB / 0.5391 GB, free: 4.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.1402, allocations: 173.9 kB / 0.5393 GB, free: 4.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1402, allocations: 0 / 0.5393 GB, free: 4.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.1405, allocations: 40 kB / 0.5393 GB, free: 4.41 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 (9): * Single equations (assignments): 8 * 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.0005854/0.1411, allocations: 0.7647 MB / 0.54 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000177/0.1413, allocations: 84.66 kB / 0.5401 GB, free: 3.531 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1413, allocations: 4.062 kB / 0.5401 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.92e-05/0.1413, allocations: 23.98 kB / 0.5402 GB, free: 3.504 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.1418, allocations: 67.69 kB / 0.5402 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.1445, allocations: 2.297 MB / 0.5425 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.1449, allocations: 0.7596 MB / 0.5432 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.617e-05/0.145, allocations: 34.27 kB / 0.5432 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.1451, allocations: 75.41 kB / 0.5433 GB, free: 76 kB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1451, allocations: 0 / 0.5433 GB, free: 76 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.1744, allocations: 4.192 MB / 0.5474 GB, free: 12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.209/8.383, allocations: 3.984 kB / 0.5474 GB, free: 12 MB / 414.1 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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: 11.232756234705448]