Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000893/0.0008931, allocations: 180.6 kB / 16.71 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 225.7 MB / 243.2 MB, free: 8.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000798/0.0007981, allocations: 85.61 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2779/0.2779, allocations: 38.18 MB / 383.7 MB, free: 40.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 8 kB / 453.6 MB, free: 8.738 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2619, allocations: 59.14 MB / 0.5007 GB, free: 39.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004712/0.2666, allocations: 4.922 MB / 0.5055 GB, free: 38.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.2686, allocations: 1.918 MB / 0.5074 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/0.2689, allocations: 28.28 kB / 0.5074 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.2692, allocations: 90.11 kB / 0.5075 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004709/0.2697, allocations: 239.3 kB / 0.5077 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.2699, allocations: 118.3 kB / 0.5078 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006879/0.2706, allocations: 0.7207 MB / 0.5085 GB, free: 36.42 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003806/0.271, allocations: 309 kB / 0.5088 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.2713, allocations: 197 kB / 0.509 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.2716, allocations: 219.8 kB / 0.5092 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/0.2716, allocations: 20.53 kB / 0.5092 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.273e-05/0.2717, allocations: 21.09 kB / 0.5093 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2718, allocations: 97.92 kB / 0.5094 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.272, allocations: 220.5 kB / 0.5096 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004175/0.2724, allocations: 485.5 kB / 0.51 GB, free: 35.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2724, allocations: 0.5938 kB / 0.51 GB, free: 35.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2724, allocations: 2.594 kB / 0.51 GB, free: 35.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2725, allocations: 0 / 0.51 GB, free: 35.81 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0008894/0.2733, allocations: 0.638 MB / 0.5107 GB, free: 35.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2734, allocations: 10 kB / 0.5107 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/0.2735, allocations: 47.12 kB / 0.5107 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.2739, allocations: 403 kB / 0.5111 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.422e-05/0.274, allocations: 60.45 kB / 0.5111 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.703e-05/0.274, allocations: 36.59 kB / 0.5112 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005678/0.2746, allocations: 432.8 kB / 0.5116 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.2746, allocations: 5.344 kB / 0.5116 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/0.2747, allocations: 14.94 kB / 0.5116 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2747, allocations: 8.75 kB / 0.5116 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.2751, allocations: 293 kB / 0.5119 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.2766, allocations: 1.842 MB / 0.5137 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.2769, allocations: 179.9 kB / 0.5139 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.277, allocations: 75.27 kB / 0.5139 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.277, allocations: 6.594 kB / 0.5139 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.277, allocations: 37.19 kB / 0.514 GB, free: 32.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.332e-06/0.277, allocations: 0 / 0.514 GB, free: 32.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009897/0.278, allocations: 0.7193 MB / 0.5147 GB, free: 32.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.581e-05/0.2781, allocations: 109.4 kB / 0.5148 GB, free: 32.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.2783, allocations: 307.9 kB / 0.5151 GB, free: 32.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.2783, allocations: 29.7 kB / 0.5151 GB, free: 32.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.2784, allocations: 238.9 kB / 0.5153 GB, free: 31.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.2785, allocations: 76.92 kB / 0.5154 GB, free: 31.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.142e-05/0.2785, allocations: 8.062 kB / 0.5154 GB, free: 31.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.312e-05/0.2785, allocations: 345.4 kB / 0.5158 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.2787, allocations: 68.28 kB / 0.5158 GB, free: 31.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.2789, allocations: 200.4 kB / 0.516 GB, free: 31.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.2792, allocations: 304 kB / 0.5163 GB, free: 30.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2792, allocations: 0 / 0.5163 GB, free: 30.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000444/0.2797, allocations: 328.8 kB / 0.5166 GB, free: 30.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2797, allocations: 5.625 kB / 0.5166 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2797, allocations: 4.438 kB / 0.5166 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2797, allocations: 9.797 kB / 0.5166 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.28, allocations: 82.42 kB / 0.5167 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.28, allocations: 5.594 kB / 0.5167 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.2802, allocations: 12.34 kB / 0.5167 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.2802, allocations: 12.5 kB / 0.5167 GB, free: 30.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.2804, allocations: 191.3 kB / 0.5169 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.2804, allocations: 38.41 kB / 0.517 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/0.2808, allocations: 194 kB / 0.5171 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2808, allocations: 3 kB / 0.5171 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2808, allocations: 3.156 kB / 0.5171 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2808, allocations: 0 / 0.5171 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006598/0.2815, allocations: 0.6219 MB / 0.5178 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2815, allocations: 2.844 kB / 0.5178 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.2817, allocations: 46.97 kB / 0.5178 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.2817, allocations: 0 / 0.5178 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.2817, allocations: 10.02 kB / 0.5178 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.2817, allocations: 6.969 kB / 0.5178 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2817, allocations: 3.984 kB / 0.5178 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004538/0.2822, allocations: 455 kB / 0.5183 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.2823, allocations: 105.8 kB / 0.5184 GB, free: 29.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/0.2823, allocations: 3.844 kB / 0.5184 GB, free: 29.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.2825, allocations: 8.344 kB / 0.5184 GB, free: 29.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.2825, allocations: 12.61 kB / 0.5184 GB, free: 29.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2826, allocations: 9.891 kB / 0.5184 GB, free: 29.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002067/0.2828, allocations: 219 kB / 0.5186 GB, free: 29.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2828, allocations: 0 / 0.5186 GB, free: 29.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003459/0.2831, allocations: 70.78 kB / 0.5187 GB, free: 29.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.969e-05/0.2832, allocations: 112.8 kB / 0.5188 GB, free: 29.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003643/0.2836, allocations: 194 kB / 0.519 GB, free: 29.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2836, allocations: 5.375 kB / 0.519 GB, free: 29.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.2838, allocations: 79.69 kB / 0.519 GB, free: 29.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.2844, allocations: 100.5 kB / 0.5191 GB, free: 29.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.2856, allocations: 1.126 MB / 0.5202 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.2858, allocations: 0.814 MB / 0.521 GB, free: 27.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.2859, allocations: 50.62 kB / 0.5211 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.286, allocations: 26.12 kB / 0.5211 GB, free: 27.78 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.286, allocations: 0 / 0.5211 GB, free: 27.78 MB / 378.7 MB Notification: Performance of Templates: time 0.005614/0.2916, allocations: 3.214 MB / 0.5242 GB, free: 27.53 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches