Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,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.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,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.BLDCcharSpeed") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 186.2 kB / 16.71 MB, free: 4.961 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.29/1.29, allocations: 225.7 MB / 243.2 MB, free: 8.434 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.0007321/0.0007322, allocations: 97.59 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.2764/0.2764, allocations: 38.17 MB / 383.7 MB, free: 40.33 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002777, allocations: 12 kB / 453.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2801, allocations: 59.15 MB / 0.5007 GB, free: 39.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.005982/0.2861, allocations: 6.511 MB / 0.507 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.2907, allocations: 3.561 MB / 0.5105 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.2913, allocations: 45.72 kB / 0.5106 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006715/0.292, allocations: 213.1 kB / 0.5108 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.2931, allocations: 0.5341 MB / 0.5113 GB, free: 34.11 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000567/0.2936, allocations: 254.6 kB / 0.5115 GB, free: 33.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00137/0.295, allocations: 1.632 MB / 0.5131 GB, free: 33.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008502/0.2959, allocations: 0.9176 MB / 0.514 GB, free: 32.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004392/0.2963, allocations: 396.3 kB / 0.5144 GB, free: 32.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005159/0.2969, allocations: 0.5104 MB / 0.5149 GB, free: 32.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.297, allocations: 40.66 kB / 0.5149 GB, free: 32.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004234/0.2974, allocations: 262.6 kB / 0.5152 GB, free: 32.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.2976, allocations: 285.3 kB / 0.5155 GB, free: 32.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002984/0.2979, allocations: 424.6 kB / 0.5159 GB, free: 32.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009859/0.2989, allocations: 1.279 MB / 0.5171 GB, free: 31.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2989, allocations: 0 / 0.5171 GB, free: 31.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2989, allocations: 3.938 kB / 0.5171 GB, free: 31.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.2989, allocations: 3.031 kB / 0.5171 GB, free: 31.76 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00156/0.3005, allocations: 0.987 MB / 0.5181 GB, free: 31.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.3005, allocations: 12.44 kB / 0.5181 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005217/0.3011, allocations: 141.6 kB / 0.5182 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008287/0.3019, allocations: 0.6606 MB / 0.5189 GB, free: 30.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.72e-05/0.302, allocations: 81.2 kB / 0.519 GB, free: 30.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.421e-05/0.3021, allocations: 63.38 kB / 0.519 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.3032, allocations: 0.9554 MB / 0.5199 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.3033, allocations: 6.938 kB / 0.52 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.3033, allocations: 29.72 kB / 0.52 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-05/0.3034, allocations: 57.02 kB / 0.52 GB, free: 30.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3045, allocations: 0.7762 MB / 0.5208 GB, free: 29.76 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/0.308, allocations: 3.874 MB / 0.5246 GB, free: 27.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/0.3086, allocations: 0.5239 MB / 0.5251 GB, free: 26.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.309, allocations: 239.8 kB / 0.5253 GB, free: 26.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.309, allocations: 9.719 kB / 0.5253 GB, free: 26.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.309, allocations: 41.53 kB / 0.5254 GB, free: 26.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.3091, allocations: 0 / 0.5254 GB, free: 26.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.008788/0.3178, allocations: 3.774 MB / 0.5291 GB, free: 24.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.3179, allocations: 113.3 kB / 0.5292 GB, free: 24.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005019/0.3184, allocations: 0.5235 MB / 0.5297 GB, free: 24.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.3185, allocations: 36.83 kB / 0.5297 GB, free: 24.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.3186, allocations: 399.6 kB / 0.5301 GB, free: 23.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3187, allocations: 194.1 kB / 0.5303 GB, free: 23.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.3188, allocations: 15.28 kB / 0.5303 GB, free: 23.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.151e-05/0.3189, allocations: 374 kB / 0.5306 GB, free: 23.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.3193, allocations: 281 kB / 0.5309 GB, free: 23.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000453/0.3197, allocations: 0.5093 MB / 0.5314 GB, free: 22.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008578/0.3206, allocations: 0.8452 MB / 0.5322 GB, free: 22.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3206, allocations: 7.094 kB / 0.5322 GB, free: 22.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002647/0.3233, allocations: 1.446 MB / 0.5337 GB, free: 21.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.3233, allocations: 9.938 kB / 0.5337 GB, free: 21.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3233, allocations: 6.781 kB / 0.5337 GB, free: 21.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.3247, allocations: 459.2 kB / 0.5341 GB, free: 21.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.3251, allocations: 116.8 kB / 0.5342 GB, free: 21.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007236/0.3323, allocations: 8.465 MB / 0.5425 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/0.3328, allocations: 31.47 kB / 0.5425 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.3329, allocations: 26.47 kB / 0.5425 GB, free: 14.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003857/0.3333, allocations: 308.5 kB / 0.5428 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.3334, allocations: 61.28 kB / 0.5429 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002557/0.336, allocations: 1.314 MB / 0.5442 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.336, allocations: 6.031 kB / 0.5442 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.336, allocations: 3.125 kB / 0.5442 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.336, allocations: 3.375 kB / 0.5442 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.3394, allocations: 2.253 MB / 0.5464 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3395, allocations: 6.719 kB / 0.5464 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.3398, allocations: 65.56 kB / 0.5465 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.341, allocations: 431.5 kB / 0.5469 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.341, allocations: 12.72 kB / 0.5469 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007064/0.3481, allocations: 8.181 MB / 0.5549 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3481, allocations: 9.375 kB / 0.5549 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.3513, allocations: 1.844 MB / 0.5567 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3515, allocations: 195.6 kB / 0.5569 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.139e-05/0.3516, allocations: 13.52 kB / 0.5569 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.352, allocations: 20.08 kB / 0.5569 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.3522, allocations: 63.69 kB / 0.557 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.3522, allocations: 16.64 kB / 0.557 GB, free: 4.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000441/0.3527, allocations: 368.2 kB / 0.5573 GB, free: 4.387 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3527, allocations: 5.094 kB / 0.5573 GB, free: 4.383 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000934/0.3536, allocations: 248.7 kB / 0.5576 GB, free: 4.355 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000232/0.3539, allocations: 144.9 kB / 0.5577 GB, free: 4.242 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.3557, allocations: 1.34 MB / 0.559 GB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3557, allocations: 1.438 kB / 0.559 GB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.3568, allocations: 0.9691 MB / 0.56 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009042/0.3578, allocations: 173.2 kB / 0.5601 GB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.3601, allocations: 2.055 MB / 0.5621 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.3607, allocations: 1.058 MB / 0.5632 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000383/0.3611, allocations: 107.5 kB / 0.5633 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3612, allocations: 43.91 kB / 0.5633 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3612, allocations: 0 / 0.5633 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of Templates: time 0.02094/0.3821, allocations: 14.23 MB / 0.5772 GB, free: 6.844 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches