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.0008304/0.0008308, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0008299/0.0008299, allocations: 182 kB / 17.56 MB, free: 6.203 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.17/1.17, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1545/0.1545, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002764, allocations: 9.5 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08869, allocations: 59.17 MB / 459.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005453/0.09418, allocations: 5.683 MB / 465.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.09633, allocations: 1.807 MB / 467.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.09656, allocations: 35.75 kB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.09686, allocations: 107.3 kB / 467.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005263/0.09739, allocations: 282.5 kB / 467.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.09767, allocations: 135.9 kB / 467.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007989/0.09848, allocations: 0.8838 MB / 468.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004098/0.0989, allocations: 353.9 kB / 469.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.09918, allocations: 238.9 kB / 469.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.09952, allocations: 274.8 kB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.09958, allocations: 24 kB / 469.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-05/0.09964, allocations: 24 kB / 469.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.09977, allocations: 119.6 kB / 469.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.09998, allocations: 272.4 kB / 470.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.1004, allocations: 0.5643 MB / 470.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1004, allocations: 0 / 470.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1004, allocations: 0 / 470.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1004, allocations: 0 / 470.7 MB, free: 12.25 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.001028/0.1015, allocations: 0.6997 MB / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1015, allocations: 8.031 kB / 471.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.613e-05/0.1016, allocations: 56.28 kB / 471.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005455/0.1022, allocations: 439.7 kB / 471.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-05/0.1023, allocations: 58.7 kB / 471.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.1023, allocations: 44 kB / 471.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007305/0.1031, allocations: 0.5009 MB / 472.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1031, allocations: 11.94 kB / 472.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.1031, allocations: 16 kB / 472.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1032, allocations: 8 kB / 472.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005992/0.1038, allocations: 351.7 kB / 472.8 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.1058, allocations: 1.98 MB / 474.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.1062, allocations: 231.5 kB / 475 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.1064, allocations: 112.8 kB / 475.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.1064, allocations: 0 / 475.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1064, allocations: 38.56 kB / 475.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.1065, allocations: 3.938 kB / 475.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001466/0.1079, allocations: 0.8572 MB / 476 MB, free: 6.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.108, allocations: 106.8 kB / 476.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.1083, allocations: 333.6 kB / 476.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.1083, allocations: 29.7 kB / 476.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1085, allocations: 271.6 kB / 476.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.39e-05/0.1085, allocations: 74.92 kB / 476.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.1086, allocations: 33.7 kB / 476.9 MB, free: 5.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1087, allocations: 350.9 kB / 477.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.1089, allocations: 87.91 kB / 477.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.1092, allocations: 225 kB / 477.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1103, allocations: 0.5741 MB / 478.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1103, allocations: 0 / 478.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007769/0.1111, allocations: 440.7 kB / 478.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1111, allocations: 8 kB / 478.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1111, allocations: 4 kB / 478.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002923/0.1114, allocations: 80.78 kB / 478.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.1116, allocations: 67.91 kB / 478.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.1132, allocations: 1.737 MB / 480.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.1134, allocations: 19.91 kB / 480.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.1135, allocations: 19.98 kB / 480.5 MB, free: 1.738 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 sytem: $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.0001821/0.1136, allocations: 193.7 kB / 480.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.296e-05/0.1137, allocations: 35.69 kB / 480.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.111e-05/0.1138, allocations: 35.31 kB / 480.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1138, allocations: 4 kB / 480.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1138, allocations: 3.938 kB / 480.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1138, allocations: 3.938 kB / 480.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1149, allocations: 0.7913 MB / 481.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1149, allocations: 3.984 kB / 481.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.1151, allocations: 47.91 kB / 481.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.927e-05/0.1152, allocations: 24.84 kB / 481.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1152, allocations: 8.031 kB / 481.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008391/0.1161, allocations: 1.292 MB / 482.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1161, allocations: 0 / 482.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.1169, allocations: 0.5172 MB / 483.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.117, allocations: 120.8 kB / 483.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.117, allocations: 7.938 kB / 483.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.1172, allocations: 8 kB / 483.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.048e-05/0.1173, allocations: 27.91 kB / 483.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.1173, allocations: 4 kB / 483.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.1175, allocations: 231.2 kB / 483.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1175, allocations: 0 / 483.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004472/0.118, allocations: 92 kB / 483.9 MB, free: 14.05 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.0001148/0.1181, allocations: 99.19 kB / 484 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006769/0.1188, allocations: 382.5 kB / 484.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1188, allocations: 0 / 484.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.1191, allocations: 222.7 kB / 484.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006985/0.1198, allocations: 89.5 kB / 484.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.1214, allocations: 1.195 MB / 485.9 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.1219, allocations: 0.8389 MB / 486.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001798/0.1221, allocations: 55.25 kB / 486.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.1221, allocations: 27.42 kB / 486.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1221, allocations: 0 / 486.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of Templates: time 0.007548/0.1297, allocations: 4.212 MB / 491 MB, free: 6.898 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches