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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001612, allocations: 113.7 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.04 MB / 330.5 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 64.31 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.09894, allocations: 58.06 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00631/0.1053, allocations: 5.258 MB / 463.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1074, allocations: 1.577 MB / 465.2 MB, free: 492 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.1077, allocations: 19.88 kB / 465.2 MB, free: 472 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003734/0.1081, allocations: 119 kB / 465.3 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005955/0.1087, allocations: 322.1 kB / 465.6 MB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.109, allocations: 155.8 kB / 465.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007104/0.1097, allocations: 0.6967 MB / 466.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004622/0.1102, allocations: 451.7 kB / 466.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.1105, allocations: 278.9 kB / 467.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.1109, allocations: 294.8 kB / 467.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.687e-05/0.1109, allocations: 48 kB / 467.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.121e-05/0.111, allocations: 48 kB / 467.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.1112, allocations: 155.5 kB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.1114, allocations: 262.8 kB / 468 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.1119, allocations: 0.5841 MB / 468.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1119, allocations: 0 / 468.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1119, allocations: 3.938 kB / 468.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.1119, allocations: 0 / 468.6 MB, free: 13.08 MB / 350.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.001174/0.1131, allocations: 0.7893 MB / 469.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1132, allocations: 8.031 kB / 469.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.1133, allocations: 56.28 kB / 469.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.1139, allocations: 451.9 kB / 469.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-05/0.114, allocations: 78.56 kB / 469.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.639e-05/0.1141, allocations: 44 kB / 470 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006937/0.1148, allocations: 0.497 MB / 470.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.1148, allocations: 7.844 kB / 470.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.1149, allocations: 20 kB / 470.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1149, allocations: 8 kB / 470.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005596/0.1155, allocations: 339.7 kB / 470.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.1175, allocations: 1.968 MB / 472.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1179, allocations: 227.6 kB / 473 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.1181, allocations: 94.59 kB / 473.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.1181, allocations: 0 / 473.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1181, allocations: 38.56 kB / 473.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1181, allocations: 0 / 473.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001425/0.1196, allocations: 0.8446 MB / 474 MB, free: 7.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.1196, allocations: 106.8 kB / 474.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.1199, allocations: 333.8 kB / 474.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.12, allocations: 29.7 kB / 474.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1201, allocations: 267.6 kB / 474.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.1202, allocations: 82.89 kB / 474.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-05/0.1203, allocations: 69.56 kB / 474.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.1204, allocations: 346.8 kB / 475.2 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.1206, allocations: 79.95 kB / 475.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.1208, allocations: 217 kB / 475.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1219, allocations: 0.5531 MB / 476 MB, free: 5.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.1219, allocations: 4 kB / 476 MB, free: 5.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007453/0.1226, allocations: 420.1 kB / 476.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1226, allocations: 8 kB / 476.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1227, allocations: 8.578 kB / 476.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002825/0.123, allocations: 72.81 kB / 476.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1232, allocations: 71.89 kB / 476.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.1249, allocations: 1.937 MB / 478.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.1251, allocations: 20 kB / 478.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.1251, allocations: 16 kB / 478.6 MB, free: 2.34 MB / 350.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.0001847/0.1253, allocations: 189.7 kB / 478.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.699e-05/0.1254, allocations: 35.61 kB / 478.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.838e-05/0.1254, allocations: 43.25 kB / 478.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1254, allocations: 4 kB / 478.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1254, allocations: 0 / 478.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1254, allocations: 0 / 478.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1265, allocations: 0.7843 MB / 479.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1265, allocations: 0 / 479.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.1268, allocations: 39.97 kB / 479.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.418e-05/0.1268, allocations: 32.81 kB / 479.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.1269, allocations: 4 kB / 479.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007996/0.1277, allocations: 1.383 MB / 481.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1277, allocations: 3.938 kB / 481.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.1284, allocations: 0.4939 MB / 481.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.1285, allocations: 116.8 kB / 481.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.1285, allocations: 11.98 kB / 481.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.1287, allocations: 4 kB / 481.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.1288, allocations: 23.91 kB / 481.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1288, allocations: 8 kB / 481.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000194/0.129, allocations: 235.2 kB / 482 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.129, allocations: 0 / 482 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004388/0.1295, allocations: 88 kB / 482.1 MB, free: 14.59 MB / 366.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 9.201e-05/0.1295, allocations: 107.1 kB / 482.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006334/0.1302, allocations: 374 kB / 482.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1302, allocations: 4 kB / 482.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.1305, allocations: 217.4 kB / 482.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/0.1311, allocations: 112.2 kB / 482.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.1325, allocations: 0.9285 MB / 483.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.1328, allocations: 0.8425 MB / 484.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.133, allocations: 51.25 kB / 484.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.133, allocations: 35.42 kB / 484.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.133, allocations: 0 / 484.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of Templates: time 0.007874/0.1409, allocations: 4.492 MB / 489.2 MB, free: 7.414 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches