Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 106.4 kB / 17.74 MB, free: 5.348 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.001094/0.001094, allocations: 185.4 kB / 18.67 MB, free: 4.43 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.284/1.284, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.05 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.91 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2839, allocations: 58.04 MB / 0.5048 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01066/0.2946, allocations: 7.184 MB / 0.5118 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0061/0.3007, allocations: 3.013 MB / 0.5147 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007529/0.3015, allocations: 35.91 kB / 0.5148 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001356/0.3029, allocations: 374.2 kB / 0.5151 GB, free: 424 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.3047, allocations: 0.6368 MB / 0.5157 GB, free: 52 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.3061, allocations: 430 kB / 0.5162 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002365/0.3085, allocations: 1.488 MB / 0.5176 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002191/0.3107, allocations: 1.204 MB / 0.5188 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.3119, allocations: 0.5738 MB / 0.5193 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.3131, allocations: 0.6465 MB / 0.52 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002309/0.3134, allocations: 112.2 kB / 0.5201 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008832/0.3143, allocations: 356.6 kB / 0.5204 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005678/0.3149, allocations: 404.9 kB / 0.5208 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008218/0.3157, allocations: 0.5742 MB / 0.5214 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002563/0.3183, allocations: 1.686 MB / 0.523 GB, free: 12.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3183, allocations: 3.938 kB / 0.523 GB, free: 12.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3183, allocations: 0.6094 kB / 0.523 GB, free: 12.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.836e-05/0.3183, allocations: 1.219 kB / 0.523 GB, free: 12.72 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003805/0.3222, allocations: 1.423 MB / 0.5244 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3222, allocations: 10.14 kB / 0.5244 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.3233, allocations: 165.5 kB / 0.5246 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.3254, allocations: 0.8296 MB / 0.5254 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.844e-05/0.3255, allocations: 60.75 kB / 0.5254 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/0.3258, allocations: 95 kB / 0.5255 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.328, allocations: 1.154 MB / 0.5267 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.333e-05/0.328, allocations: 7.75 kB / 0.5267 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.385e-05/0.3281, allocations: 35.88 kB / 0.5267 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001439/0.3283, allocations: 64.33 kB / 0.5268 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.33, allocations: 0.9394 MB / 0.5277 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005961/0.336, allocations: 4.606 MB / 0.5322 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.337, allocations: 0.6732 MB / 0.5328 GB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.3376, allocations: 336.6 kB / 0.5332 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.3376, allocations: 10.61 kB / 0.5332 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.3377, allocations: 45.91 kB / 0.5332 GB, free: 6.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.324e-06/0.3377, allocations: 3.938 kB / 0.5332 GB, free: 6.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=62): time 0.004709/0.3424, allocations: 2.334 MB / 0.5355 GB, free: 4.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.3425, allocations: 140.6 kB / 0.5356 GB, free: 4.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007925/0.3433, allocations: 0.6787 MB / 0.5363 GB, free: 4.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/0.3433, allocations: 39.92 kB / 0.5363 GB, free: 3.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.3437, allocations: 488 kB / 0.5368 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.3439, allocations: 220.9 kB / 0.537 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/0.3441, allocations: 144.7 kB / 0.5371 GB, free: 3.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3443, allocations: 388.6 kB / 0.5375 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.3447, allocations: 285.8 kB / 0.5378 GB, free: 2.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000619/0.3454, allocations: 0.5166 MB / 0.5383 GB, free: 2.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003475/0.3489, allocations: 1.509 MB / 0.5398 GB, free: 1.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3489, allocations: 2.969 kB / 0.5398 GB, free: 1.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002978/0.3519, allocations: 1.373 MB / 0.5411 GB, free: 476 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3519, allocations: 12.62 kB / 0.5411 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3519, allocations: 11.62 kB / 0.5411 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.3535, allocations: 437.3 kB / 0.5415 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005465/0.3541, allocations: 151.5 kB / 0.5417 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009042/0.3631, allocations: 6.711 MB / 0.5482 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.3638, allocations: 35.98 kB / 0.5483 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/0.3638, allocations: 35.98 kB / 0.5483 GB, free: 10.85 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.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009332/0.3648, allocations: 0.5057 MB / 0.5488 GB, free: 10.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005725/0.3653, allocations: 0.5043 MB / 0.5493 GB, free: 9.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003223/0.3686, allocations: 1.486 MB / 0.5508 GB, free: 8.125 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/0.3686, allocations: 0 / 0.5508 GB, free: 8.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002596/0.3712, allocations: 1.293 MB / 0.552 GB, free: 6.797 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3712, allocations: 14.34 kB / 0.552 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3712, allocations: 4 kB / 0.552 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/0.3727, allocations: 429.6 kB / 0.5524 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000532/0.3732, allocations: 147.8 kB / 0.5526 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.3833, allocations: 6.476 MB / 0.5589 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.3843, allocations: 43.81 kB / 0.5589 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.3845, allocations: 36 kB / 0.559 GB, free: 15.38 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0003383/0.3848, allocations: 232 kB / 0.5592 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.3851, allocations: 83.14 kB / 0.5593 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.3872, allocations: 0.7302 MB / 0.56 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.3872, allocations: 11.98 kB / 0.56 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3872, allocations: 0 / 0.56 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004852/0.3877, allocations: 215.9 kB / 0.5602 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.3879, allocations: 12 kB / 0.5602 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007122/0.3886, allocations: 27.97 kB / 0.5603 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3888, allocations: 40.5 kB / 0.5603 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002788/0.3916, allocations: 0.9783 MB / 0.5612 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002849/0.3944, allocations: 1.371 MB / 0.5626 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007856/0.3952, allocations: 316.3 kB / 0.5629 GB, free: 11.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009763/0.3962, allocations: 475 kB / 0.5633 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Backend: time 6.31e-07/0.3963, allocations: 0 / 0.5633 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005612/0.4019, allocations: 1.86 MB / 0.5652 GB, free: 8.938 MB / 430.1 MB Notification: Performance of SimCode: time 0.005173/0.4071, allocations: 2.495 MB / 0.5676 GB, free: 6.402 MB / 430.1 MB Notification: Performance of Templates: time 0.04543/0.4525, allocations: 19.76 MB / 0.5869 GB, free: 2.773 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches