Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.001696/0.001696, allocations: 121.4 kB / 17.79 MB, free: 5.121 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.002001/0.002001, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.43/1.43, allocations: 225.6 MB / 249.1 MB, free: 3.621 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.1847/0.1847, allocations: 38.5 MB / 342.5 MB, free: 8.082 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.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 66.08 kB / 478.6 MB, free: 33.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1201, allocations: 61.25 MB / 0.5272 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008225/0.1283, allocations: 5.315 MB / 0.5324 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.1314, allocations: 1.573 MB / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003404/0.1317, allocations: 19.88 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004725/0.1322, allocations: 127 kB / 0.5341 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008919/0.1331, allocations: 318.1 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.1335, allocations: 155.8 kB / 0.5345 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.1346, allocations: 0.6967 MB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006012/0.1352, allocations: 375.7 kB / 0.5356 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004623/0.1356, allocations: 286.9 kB / 0.5358 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.1361, allocations: 298.8 kB / 0.5361 GB, free: 8.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.178e-05/0.1362, allocations: 48 kB / 0.5362 GB, free: 8.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.715e-05/0.1363, allocations: 44 kB / 0.5362 GB, free: 8.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1364, allocations: 155.5 kB / 0.5364 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003091/0.1368, allocations: 270.7 kB / 0.5366 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000819/0.1376, allocations: 0.5953 MB / 0.5372 GB, free: 7.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1376, allocations: 0 / 0.5372 GB, free: 7.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1376, allocations: 4 kB / 0.5372 GB, free: 7.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1376, allocations: 0 / 0.5372 GB, free: 7.211 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001554/0.1391, allocations: 0.7965 MB / 0.538 GB, free: 6.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1392, allocations: 15.89 kB / 0.538 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.1393, allocations: 82.7 kB / 0.5381 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.1394, allocations: 56.61 kB / 0.5381 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008664/0.1403, allocations: 467.9 kB / 0.5386 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.1404, allocations: 66.69 kB / 0.5386 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.681e-05/0.1405, allocations: 43.95 kB / 0.5387 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000884/0.1413, allocations: 0.497 MB / 0.5392 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.18e-05/0.1414, allocations: 7.984 kB / 0.5392 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.1414, allocations: 19.98 kB / 0.5392 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1414, allocations: 8 kB / 0.5392 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006625/0.1421, allocations: 343.7 kB / 0.5395 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.1447, allocations: 1.98 MB / 0.5415 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.1452, allocations: 207.7 kB / 0.5417 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.1454, allocations: 90.59 kB / 0.5418 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.1454, allocations: 7.938 kB / 0.5418 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.1455, allocations: 34.56 kB / 0.5418 GB, free: 2.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.934e-06/0.1455, allocations: 0 / 0.5418 GB, free: 2.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001773/0.1472, allocations: 0.8574 MB / 0.5426 GB, free: 1.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.399e-05/0.1473, allocations: 110.8 kB / 0.5427 GB, free: 1.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.1477, allocations: 333.6 kB / 0.5431 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.1477, allocations: 29.7 kB / 0.5431 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.1479, allocations: 272.2 kB / 0.5433 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/0.148, allocations: 83.33 kB / 0.5434 GB, free: 460 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.1481, allocations: 69.72 kB / 0.5435 GB, free: 384 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1483, allocations: 346.8 kB / 0.5438 GB, free: 28 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.1485, allocations: 80.03 kB / 0.5439 GB, free: 15.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.1488, allocations: 213.1 kB / 0.5441 GB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.1501, allocations: 0.5582 MB / 0.5446 GB, free: 15.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1501, allocations: 8 kB / 0.5447 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000963/0.151, allocations: 410.5 kB / 0.545 GB, free: 14.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.1511, allocations: 8 kB / 0.5451 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1511, allocations: 4 kB / 0.5451 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003575/0.1514, allocations: 76.8 kB / 0.5451 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.1517, allocations: 67.84 kB / 0.5452 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.154, allocations: 1.938 MB / 0.5471 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.1542, allocations: 12 kB / 0.5471 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.1543, allocations: 16 kB / 0.5471 GB, free: 12.37 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002916/0.1546, allocations: 197.6 kB / 0.5473 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.668e-05/0.1546, allocations: 43.77 kB / 0.5473 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.267e-05/0.1547, allocations: 39.3 kB / 0.5474 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1547, allocations: 4 kB / 0.5474 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1547, allocations: 0 / 0.5474 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1547, allocations: 4 kB / 0.5474 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.1561, allocations: 0.7804 MB / 0.5481 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1561, allocations: 0 / 0.5481 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1563, allocations: 47.91 kB / 0.5482 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.579e-05/0.1564, allocations: 20.84 kB / 0.5482 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.1565, allocations: 11.98 kB / 0.5482 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.1577, allocations: 1.383 MB / 0.5496 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.1577, allocations: 4.031 kB / 0.5496 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000869/0.1585, allocations: 0.5037 MB / 0.5501 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.1587, allocations: 117 kB / 0.5502 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.1587, allocations: 7.984 kB / 0.5502 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.1589, allocations: 12 kB / 0.5502 GB, free: 8.934 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.159, allocations: 15.97 kB / 0.5502 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.159, allocations: 12 kB / 0.5502 GB, free: 8.906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000273/0.1593, allocations: 227.2 kB / 0.5504 GB, free: 8.688 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1593, allocations: 0 / 0.5504 GB, free: 8.688 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005296/0.1598, allocations: 91.94 kB / 0.5505 GB, free: 8.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001323/0.1612, allocations: 1.054 MB / 0.5516 GB, free: 7.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008072/0.162, allocations: 366.4 kB / 0.5519 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.162, allocations: 0 / 0.5519 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.1624, allocations: 214.7 kB / 0.5521 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000681/0.163, allocations: 99.56 kB / 0.5522 GB, free: 6.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005716/0.1688, allocations: 3.697 MB / 0.5558 GB, free: 2.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.1693, allocations: 0.8465 MB / 0.5566 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.1696, allocations: 43.27 kB / 0.5567 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.1698, allocations: 143.3 kB / 0.5568 GB, free: 1.855 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1698, allocations: 4 kB / 0.5568 GB, free: 1.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03972/0.2095, allocations: 8.59 MB / 0.5652 GB, free: 9.449 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.7, allocations: 12 kB / 0.5652 GB, free: 9.438 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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: 15.652950968127698]