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.001671/0.001671, allocations: 113.5 kB / 17.74 MB, free: 5.227 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.00211/0.00211, allocations: 184.5 kB / 18.67 MB, free: 4.309 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.389/1.389, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1753/0.1753, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.89 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3571, allocations: 58.05 MB / 0.5048 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006508/0.3637, allocations: 5.266 MB / 0.5099 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3661, allocations: 1.565 MB / 0.5114 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.3665, allocations: 20.72 kB / 0.5115 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004083/0.3669, allocations: 120.1 kB / 0.5116 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007812/0.3677, allocations: 311.1 kB / 0.5119 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.3681, allocations: 158.7 kB / 0.512 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008565/0.369, allocations: 0.6951 MB / 0.5127 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005614/0.3696, allocations: 465.8 kB / 0.5131 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004439/0.37, allocations: 279.6 kB / 0.5134 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00049/0.3705, allocations: 290.1 kB / 0.5137 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.3706, allocations: 50.81 kB / 0.5137 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.3707, allocations: 45.75 kB / 0.5138 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.3709, allocations: 156.3 kB / 0.5139 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002693/0.3712, allocations: 259.4 kB / 0.5142 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007908/0.372, allocations: 0.5984 MB / 0.5148 GB, free: 1.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.372, allocations: 0 / 0.5148 GB, free: 1.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.372, allocations: 1.188 kB / 0.5148 GB, free: 1.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.372, allocations: 0 / 0.5148 GB, free: 1.375 MB / 382.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.001503/0.3735, allocations: 0.7891 MB / 0.5155 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.3736, allocations: 9.312 kB / 0.5155 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.3737, allocations: 55.59 kB / 0.5156 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.3746, allocations: 455.5 kB / 0.516 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3748, allocations: 67.84 kB / 0.5161 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.313e-05/0.3749, allocations: 49.53 kB / 0.5161 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000883/0.3757, allocations: 0.4968 MB / 0.5166 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3758, allocations: 0.9688 kB / 0.5166 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.3758, allocations: 16.78 kB / 0.5166 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3758, allocations: 11.92 kB / 0.5167 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007618/0.3766, allocations: 347.8 kB / 0.517 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.3793, allocations: 1.972 MB / 0.5189 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.3799, allocations: 223.5 kB / 0.5191 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.3802, allocations: 97.11 kB / 0.5192 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3802, allocations: 6.906 kB / 0.5192 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.3802, allocations: 37.08 kB / 0.5193 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.633e-06/0.3802, allocations: 0 / 0.5193 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001817/0.3821, allocations: 0.8295 MB / 0.5201 GB, free: 13.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.3822, allocations: 110.9 kB / 0.5202 GB, free: 13.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.3826, allocations: 335.8 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.3826, allocations: 28.36 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.3828, allocations: 267.6 kB / 0.5208 GB, free: 13.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.262e-05/0.3829, allocations: 84.78 kB / 0.5209 GB, free: 13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.383, allocations: 67.97 kB / 0.5209 GB, free: 12.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.3832, allocations: 345.2 kB / 0.5212 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.3835, allocations: 81.7 kB / 0.5213 GB, free: 12.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.3837, allocations: 217.9 kB / 0.5215 GB, free: 12.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.385, allocations: 0.5617 MB / 0.5221 GB, free: 12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.385, allocations: 2.312 kB / 0.5221 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009182/0.3859, allocations: 414.7 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.386, allocations: 6.906 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.386, allocations: 3.781 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.3863, allocations: 78.23 kB / 0.5226 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.3866, allocations: 76.52 kB / 0.5226 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.389, allocations: 1.926 MB / 0.5245 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.3893, allocations: 14.91 kB / 0.5245 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.3893, allocations: 20.83 kB / 0.5246 GB, free: 10.03 MB / 398.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.0002859/0.3896, allocations: 195.5 kB / 0.5247 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.3897, allocations: 33.03 kB / 0.5248 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.414e-05/0.3898, allocations: 41.22 kB / 0.5248 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3898, allocations: 3.281 kB / 0.5248 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3898, allocations: 2.312 kB / 0.5248 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3898, allocations: 1.219 kB / 0.5248 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.3912, allocations: 0.773 MB / 0.5256 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3913, allocations: 1.219 kB / 0.5256 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.3915, allocations: 44.45 kB / 0.5256 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.233e-05/0.3916, allocations: 22.05 kB / 0.5256 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.3916, allocations: 7.766 kB / 0.5256 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.3927, allocations: 1.385 MB / 0.527 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3928, allocations: 2.266 kB / 0.527 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008682/0.3936, allocations: 0.502 MB / 0.5275 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.3938, allocations: 121 kB / 0.5276 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.3939, allocations: 11.45 kB / 0.5276 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.3941, allocations: 6.422 kB / 0.5276 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.3942, allocations: 21.88 kB / 0.5276 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3942, allocations: 10.2 kB / 0.5277 GB, free: 7.355 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002981/0.3945, allocations: 228.4 kB / 0.5279 GB, free: 7.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.3945, allocations: 0 / 0.5279 GB, free: 7.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005981/0.3951, allocations: 90.97 kB / 0.528 GB, free: 7.223 MB / 398.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.0001369/0.3952, allocations: 107.1 kB / 0.5281 GB, free: 7.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008266/0.3961, allocations: 367.9 kB / 0.5284 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3961, allocations: 4.062 kB / 0.5284 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.3965, allocations: 213.4 kB / 0.5286 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.3973, allocations: 113.2 kB / 0.5287 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.3993, allocations: 0.9594 MB / 0.5297 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.3998, allocations: 0.8481 MB / 0.5305 GB, free: 5.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.85e-05/0.3999, allocations: 32.38 kB / 0.5305 GB, free: 5.395 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3999, allocations: 0 / 0.5305 GB, free: 5.395 MB / 398.1 MB Notification: Performance of Templates: time 0.01114/0.411, allocations: 6.928 MB / 0.5373 GB, free: 2.664 MB / 398.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/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