Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.001394/0.001394, allocations: 113 kB / 18.49 MB, free: 4.598 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.001431/0.001431, allocations: 213.4 kB / 21.45 MB, free: 1.652 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.54/1.54, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.1913/0.1913, allocations: 38.51 MB / 349.4 MB, free: 2.676 MB / 270.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.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="cs",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.001951/0.001951, allocations: 67.89 kB / 487.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1208, allocations: 62.42 MB / 0.5374 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007091/0.1279, allocations: 4.577 MB / 0.5418 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.1311, allocations: 1.522 MB / 0.5433 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000472/0.1316, allocations: 19.81 kB / 0.5433 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006289/0.1322, allocations: 119.1 kB / 0.5435 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008994/0.1331, allocations: 282.2 kB / 0.5437 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.1335, allocations: 111.8 kB / 0.5438 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007947/0.1343, allocations: 0.5096 MB / 0.5443 GB, free: 396 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.1346, allocations: 127.9 kB / 0.5445 GB, free: 264 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003992/0.135, allocations: 207.1 kB / 0.5447 GB, free: 56 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.1354, allocations: 215.1 kB / 0.5449 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.1355, allocations: 32 kB / 0.5449 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.402e-05/0.1356, allocations: 24 kB / 0.5449 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.1357, allocations: 111.6 kB / 0.545 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.1359, allocations: 179 kB / 0.5452 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.1366, allocations: 382.3 kB / 0.5456 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1366, allocations: 0 / 0.5456 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1366, allocations: 0 / 0.5456 GB, free: 15.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1366, allocations: 0 / 0.5456 GB, free: 15.13 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001241/0.1378, allocations: 0.6785 MB / 0.5462 GB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1379, allocations: 8.031 kB / 0.5462 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.997e-05/0.1379, allocations: 8.75 kB / 0.5462 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.743e-05/0.138, allocations: 66.66 kB / 0.5463 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.907e-05/0.1381, allocations: 44.66 kB / 0.5463 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007051/0.1388, allocations: 407.5 kB / 0.5467 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.1388, allocations: 20.56 kB / 0.5467 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.1388, allocations: 31.98 kB / 0.5468 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005366/0.1394, allocations: 326.2 kB / 0.5471 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1394, allocations: 8 kB / 0.5471 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.1394, allocations: 12 kB / 0.5471 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1394, allocations: 4 kB / 0.5471 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.1398, allocations: 213.4 kB / 0.5473 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.1415, allocations: 1.479 MB / 0.5488 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.1419, allocations: 198.3 kB / 0.5489 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.142, allocations: 79.53 kB / 0.549 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.142, allocations: 3.984 kB / 0.549 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.1421, allocations: 34.56 kB / 0.5491 GB, free: 11.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.873e-06/0.1421, allocations: 0 / 0.5491 GB, free: 11.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001223/0.1433, allocations: 0.7061 MB / 0.5498 GB, free: 10.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/0.1434, allocations: 132.5 kB / 0.5499 GB, free: 10.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.1437, allocations: 313.7 kB / 0.5502 GB, free: 10.01 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1437, allocations: 29.69 kB / 0.5502 GB, free: 9.977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.144, allocations: 216.1 kB / 0.5504 GB, free: 9.762 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.078e-05/0.144, allocations: 67.47 kB / 0.5505 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.43e-05/0.1441, allocations: 53.66 kB / 0.5505 GB, free: 9.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1443, allocations: 342.8 kB / 0.5509 GB, free: 9.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.604e-05/0.1444, allocations: 47.98 kB / 0.5509 GB, free: 9.246 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.1445, allocations: 156.7 kB / 0.551 GB, free: 9.047 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.1448, allocations: 220.9 kB / 0.5513 GB, free: 8.785 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1448, allocations: 0 / 0.5513 GB, free: 8.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003951/0.1452, allocations: 249.1 kB / 0.5515 GB, free: 8.535 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1453, allocations: 8 kB / 0.5515 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1453, allocations: 11.92 kB / 0.5515 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1453, allocations: 7.984 kB / 0.5515 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.1457, allocations: 88.28 kB / 0.5516 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.1467, allocations: 1.365 MB / 0.5529 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.1469, allocations: 11.95 kB / 0.553 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.1469, allocations: 19.98 kB / 0.553 GB, free: 6.891 MB / 414.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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001907/0.1471, allocations: 177.5 kB / 0.5531 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.754e-05/0.1472, allocations: 35.75 kB / 0.5532 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003352/0.1475, allocations: 190.5 kB / 0.5534 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1475, allocations: 0 / 0.5534 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1475, allocations: 4 kB / 0.5534 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1475, allocations: 3.984 kB / 0.5534 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007999/0.1483, allocations: 0.5412 MB / 0.5539 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1483, allocations: 4 kB / 0.5539 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.1486, allocations: 43.92 kB / 0.5539 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.1486, allocations: 7.984 kB / 0.5539 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1486, allocations: 4.031 kB / 0.5539 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1486, allocations: 4 kB / 0.554 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1486, allocations: 3.938 kB / 0.554 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.1491, allocations: 497.5 kB / 0.5544 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-05/0.1492, allocations: 108.9 kB / 0.5545 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.1492, allocations: 4 kB / 0.5545 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.1494, allocations: 8 kB / 0.5545 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.1494, allocations: 11.97 kB / 0.5546 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.1494, allocations: 15.98 kB / 0.5546 GB, free: 5.145 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.1497, allocations: 215.2 kB / 0.5548 GB, free: 4.938 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1497, allocations: 0 / 0.5548 GB, free: 4.938 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004725/0.1501, allocations: 64 kB / 0.5548 GB, free: 4.875 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.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 (20): * Single equations (assignments): 19 * 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.0007925/0.1509, allocations: 1.021 MB / 0.5558 GB, free: 3.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003747/0.1513, allocations: 167.1 kB / 0.556 GB, free: 3.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1513, allocations: 0 / 0.556 GB, free: 3.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.1514, allocations: 75.78 kB / 0.5561 GB, free: 3.586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007097/0.1521, allocations: 96.12 kB / 0.5562 GB, free: 3.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004112/0.1563, allocations: 3.263 MB / 0.5593 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.1567, allocations: 0.8029 MB / 0.5601 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.1569, allocations: 46.94 kB / 0.5602 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.1571, allocations: 119.4 kB / 0.5603 GB, free: 15.07 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1571, allocations: 3.938 kB / 0.5603 GB, free: 15.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.1866, allocations: 6.804 MB / 0.5669 GB, free: 8.414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.824/9.01, allocations: 11.27 kB / 0.5669 GB, free: 8.406 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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: 12.141908707038965]