Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001373/0.001373, allocations: 177.2 kB / 16.08 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.6 MB / 222.4 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008137/0.0008136, allocations: 93.56 kB / 270.8 MB, free: 8.113 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.348/0.348, allocations: 43.67 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003712, allocations: 8 kB / 432.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 58.86 MB / 491.2 MB, free: 9.805 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.2235/0.3366, allocations: 10.3 MB / 0.4897 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007817/0.3445, allocations: 4.239 MB / 0.4938 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.3467, allocations: 63.12 kB / 0.4939 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.3492, allocations: 0.7477 MB / 0.4946 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003566/0.3528, allocations: 0.8499 MB / 0.4955 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.3543, allocations: 464.5 kB / 0.4959 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004583/0.3588, allocations: 3.653 MB / 0.4995 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002962/0.3618, allocations: 2.5 MB / 0.5019 GB, free: 34.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.3641, allocations: 1.151 MB / 0.503 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002624/0.3667, allocations: 1.646 MB / 0.5046 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004536/0.3672, allocations: 173.6 kB / 0.5048 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.3684, allocations: 295.8 kB / 0.5051 GB, free: 33.52 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.3694, allocations: 0.9098 MB / 0.506 GB, free: 33.33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.3713, allocations: 1.572 MB / 0.5075 GB, free: 32.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004101/0.3755, allocations: 5.181 MB / 0.5126 GB, free: 31.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3755, allocations: 0 / 0.5126 GB, free: 31.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3755, allocations: 3.438 kB / 0.5126 GB, free: 31.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001413/0.3756, allocations: 0 / 0.5126 GB, free: 31.11 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.006023/0.3817, allocations: 3.207 MB / 0.5157 GB, free: 29.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3817, allocations: 9.75 kB / 0.5157 GB, free: 29.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.3828, allocations: 397.3 kB / 0.5161 GB, free: 29.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.3858, allocations: 1.946 MB / 0.518 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.3859, allocations: 222.5 kB / 0.5182 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003713/0.3863, allocations: 286.6 kB / 0.5185 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005626/0.3919, allocations: 3.706 MB / 0.5221 GB, free: 26.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.771e-05/0.392, allocations: 12.19 kB / 0.5221 GB, free: 26.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.3923, allocations: 118.4 kB / 0.5222 GB, free: 26.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.3924, allocations: 142 kB / 0.5224 GB, free: 26.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.3976, allocations: 3.152 MB / 0.5254 GB, free: 25.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02025/0.4179, allocations: 11.62 MB / 0.5368 GB, free: 18.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/0.4221, allocations: 2.173 MB / 0.5389 GB, free: 17.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002246/0.4244, allocations: 1.241 MB / 0.5401 GB, free: 16.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003034/0.4247, allocations: 214.7 kB / 0.5403 GB, free: 16.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4247, allocations: 49.84 kB / 0.5404 GB, free: 16.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 4.238e-06/0.4248, allocations: 0 / 0.5404 GB, free: 16.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01984/0.4446, allocations: 8.254 MB / 0.5484 GB, free: 11.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4447, allocations: 68.78 kB / 0.5485 GB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003772/0.4485, allocations: 1.927 MB / 0.5504 GB, free: 10.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.4487, allocations: 50.83 kB / 0.5504 GB, free: 10.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009068/0.4496, allocations: 1.354 MB / 0.5518 GB, free: 9.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004989/0.4501, allocations: 0.5206 MB / 0.5523 GB, free: 9.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.4502, allocations: 34.78 kB / 0.5523 GB, free: 9.062 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.4504, allocations: 372.2 kB / 0.5527 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.4519, allocations: 0.8827 MB / 0.5535 GB, free: 8.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.4534, allocations: 1.348 MB / 0.5548 GB, free: 6.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.4563, allocations: 2.374 MB / 0.5571 GB, free: 4.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.4563, allocations: 4 kB / 0.5572 GB, free: 4.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004528/0.4609, allocations: 2.93 MB / 0.56 GB, free: 1.285 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.4609, allocations: 8 kB / 0.56 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/0.4609, allocations: 16.41 kB / 0.56 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008223/0.4618, allocations: 391.1 kB / 0.5604 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.4633, allocations: 451.3 kB / 0.5608 GB, free: 436 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005741/0.4691, allocations: 6.198 MB / 0.5669 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.471, allocations: 123.8 kB / 0.567 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/0.4713, allocations: 71.98 kB / 0.5671 GB, free: 9.641 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002024/0.4733, allocations: 0.9073 MB / 0.568 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006393/0.474, allocations: 213.3 kB / 0.5682 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005551/0.4795, allocations: 2.899 MB / 0.571 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.4796, allocations: 12 kB / 0.571 GB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/0.4796, allocations: 8 kB / 0.571 GB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.4796, allocations: 11.97 kB / 0.571 GB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.4921, allocations: 6.166 MB / 0.5771 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.4922, allocations: 11.88 kB / 0.5771 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4933, allocations: 239.6 kB / 0.5773 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.4954, allocations: 0.8039 MB / 0.5781 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.4956, allocations: 39.97 kB / 0.5781 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/0.5074, allocations: 9.836 MB / 0.5877 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/0.5075, allocations: 7.938 kB / 0.5877 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007317/0.5148, allocations: 4.183 MB / 0.5918 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.5161, allocations: 494.3 kB / 0.5923 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006164/0.5167, allocations: 35.98 kB / 0.5923 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.5182, allocations: 103.8 kB / 0.5924 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/0.5185, allocations: 121.2 kB / 0.5925 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.5186, allocations: 55.98 kB / 0.5926 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0024/0.5211, allocations: 1.321 MB / 0.5939 GB, free: 13.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5211, allocations: 0 / 0.5939 GB, free: 13.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002379/0.5235, allocations: 0.5703 MB / 0.5944 GB, free: 12.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004224/0.5239, allocations: 201.6 kB / 0.5946 GB, free: 12.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003995/0.5279, allocations: 2.627 MB / 0.5972 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5279, allocations: 0 / 0.5972 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.5303, allocations: 1.643 MB / 0.5988 GB, free: 8.398 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004007/0.5343, allocations: 0.5059 MB / 0.5993 GB, free: 7.891 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.5452, allocations: 7.171 MB / 0.6063 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.5478, allocations: 2.217 MB / 0.6085 GB, free: 14.39 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001838/0.5497, allocations: 461.7 kB / 0.6089 GB, free: 13.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006824/0.5504, allocations: 151.4 kB / 0.609 GB, free: 13.79 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5504, allocations: 4 kB / 0.609 GB, free: 13.79 MB / 442.7 MB Notification: Performance of Templates: time 0.0563/0.6067, allocations: 31.07 MB / 0.6394 GB, free: 14.89 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches