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.001581/0.001581, allocations: 110.7 kB / 16.92 MB, free: 5.766 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.001756/0.001756, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.427/1.427, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1726/0.1726, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 65.47 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09318, allocations: 58.07 MB / 456.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007213/0.1005, allocations: 5.253 MB / 462.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.1032, allocations: 1.577 MB / 463.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000429/0.1037, allocations: 15.94 kB / 463.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004806/0.1042, allocations: 127 kB / 463.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009588/0.1052, allocations: 318.1 kB / 464.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.1056, allocations: 163.7 kB / 464.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.1066, allocations: 0.6811 MB / 465 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006999/0.1074, allocations: 455.6 kB / 465.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004834/0.1078, allocations: 278.9 kB / 465.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004761/0.1083, allocations: 298.8 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.479e-05/0.1084, allocations: 48 kB / 466 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1085, allocations: 44 kB / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.1087, allocations: 155.6 kB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002778/0.109, allocations: 262.8 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006109/0.1096, allocations: 0.5802 MB / 467.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1096, allocations: 0 / 467.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1096, allocations: 0 / 467.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.1097, allocations: 0 / 467.1 MB, free: 13.82 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.001357/0.111, allocations: 0.7892 MB / 467.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1111, allocations: 8.031 kB / 467.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.1112, allocations: 56.28 kB / 467.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006751/0.1119, allocations: 432 kB / 468.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-05/0.112, allocations: 66.64 kB / 468.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.1121, allocations: 47.94 kB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007644/0.1128, allocations: 0.497 MB / 469 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.1129, allocations: 3.906 kB / 469 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.66e-05/0.1129, allocations: 24 kB / 469 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1129, allocations: 8 kB / 469 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006429/0.1136, allocations: 339.7 kB / 469.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.1159, allocations: 1.98 MB / 471.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000431/0.1163, allocations: 223.6 kB / 471.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1165, allocations: 102.6 kB / 471.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.1166, allocations: 4 kB / 471.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.1166, allocations: 34.56 kB / 471.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.1166, allocations: 0 / 471.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001563/0.1182, allocations: 0.8372 MB / 472.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.1182, allocations: 119 kB / 472.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.1185, allocations: 329.6 kB / 472.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.1186, allocations: 29.7 kB / 473 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.1187, allocations: 275.6 kB / 473.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.138e-05/0.1188, allocations: 70.91 kB / 473.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1189, allocations: 77.56 kB / 473.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1191, allocations: 342.8 kB / 473.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.1193, allocations: 79.95 kB / 473.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.1196, allocations: 213.1 kB / 474 MB, free: 6.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.1208, allocations: 0.5612 MB / 474.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1208, allocations: 4 kB / 474.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008162/0.1216, allocations: 420.8 kB / 475 MB, free: 5.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.1217, allocations: 8 kB / 475 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1217, allocations: 7.984 kB / 475 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.122, allocations: 80.92 kB / 475.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.1222, allocations: 63.91 kB / 475.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.1242, allocations: 1.939 MB / 477.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.1244, allocations: 20.05 kB / 477.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.1245, allocations: 20 kB / 477.1 MB, free: 3.082 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.0001967/0.1247, allocations: 189.7 kB / 477.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.1247, allocations: 31.62 kB / 477.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.51e-05/0.1248, allocations: 47.25 kB / 477.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1248, allocations: 0 / 477.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1248, allocations: 4 kB / 477.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1248, allocations: 3.984 kB / 477.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.126, allocations: 0.7726 MB / 478.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.126, allocations: 0 / 478.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002459/0.1263, allocations: 43.97 kB / 478.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-05/0.1264, allocations: 32.81 kB / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1264, allocations: 0 / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008989/0.1273, allocations: 1.39 MB / 479.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1273, allocations: 0 / 479.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007372/0.128, allocations: 0.4977 MB / 480.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1282, allocations: 120.7 kB / 480.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.1282, allocations: 8 kB / 480.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.1284, allocations: 15.98 kB / 480.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.1285, allocations: 19.98 kB / 480.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1285, allocations: 7.938 kB / 480.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.1287, allocations: 231.2 kB / 480.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1287, allocations: 0 / 480.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.1292, allocations: 88 kB / 480.6 MB, free: 15.33 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 0.0001115/0.1293, allocations: 107.2 kB / 480.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.1301, allocations: 376.4 kB / 481.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1301, allocations: 1.188 kB / 481.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.1304, allocations: 222.6 kB / 481.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000661/0.1311, allocations: 105.5 kB / 481.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.1326, allocations: 0.9364 MB / 482.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.133, allocations: 0.8387 MB / 483.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.1332, allocations: 51.27 kB / 483.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.1333, allocations: 31.44 kB / 483.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1333, allocations: 0 / 483.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Templates: time 0.008327/0.1416, allocations: 4.502 MB / 487.8 MB, free: 8.141 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/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