Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009137/0.0009139, allocations: 174.3 kB / 17.4 MB, free: 4.293 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.367/1.367, allocations: 225.7 MB / 243.9 MB, free: 8.445 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.0008376/0.0008382, allocations: 88.56 kB / 295 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3804/0.3804, allocations: 44.32 MB / 390.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005853/0.0005853, allocations: 8 kB / 463.1 MB, free: 448 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4432/0.4438, allocations: 61.9 MB / 0.5127 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01016/0.454, allocations: 10.34 MB / 0.5228 GB, free: 30.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007162/0.4612, allocations: 4.178 MB / 0.5269 GB, free: 27.29 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.4638, allocations: 65.94 kB / 0.527 GB, free: 27.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002653/0.4665, allocations: 0.7567 MB / 0.5277 GB, free: 26.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003644/0.4701, allocations: 0.8525 MB / 0.5285 GB, free: 26.36 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.472, allocations: 458.8 kB / 0.529 GB, free: 26.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005178/0.4772, allocations: 3.641 MB / 0.5325 GB, free: 24.44 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004224/0.4814, allocations: 2.557 MB / 0.535 GB, free: 23.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.4841, allocations: 1.159 MB / 0.5362 GB, free: 22.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003531/0.4877, allocations: 1.637 MB / 0.5378 GB, free: 22.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009966/0.4887, allocations: 167.7 kB / 0.5379 GB, free: 22.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/0.4906, allocations: 294.2 kB / 0.5382 GB, free: 22.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001597/0.4922, allocations: 0.9105 MB / 0.5391 GB, free: 21.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002976/0.4952, allocations: 1.565 MB / 0.5406 GB, free: 20.67 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005301/0.5005, allocations: 5.185 MB / 0.5457 GB, free: 19.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5005, allocations: 0 / 0.5457 GB, free: 19.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5005, allocations: 0 / 0.5457 GB, free: 19.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002082/0.5008, allocations: 0 / 0.5457 GB, free: 19.34 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.008695/0.5095, allocations: 3.225 MB / 0.5488 GB, free: 17.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.486e-05/0.5096, allocations: 14.42 kB / 0.5489 GB, free: 17.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/0.5119, allocations: 388.3 kB / 0.5492 GB, free: 17.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005164/0.5171, allocations: 2.021 MB / 0.5512 GB, free: 16.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.5174, allocations: 228.6 kB / 0.5514 GB, free: 16.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005872/0.518, allocations: 290.3 kB / 0.5517 GB, free: 16.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008458/0.5265, allocations: 3.714 MB / 0.5553 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-05/0.5266, allocations: 11.19 kB / 0.5553 GB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.5268, allocations: 116.7 kB / 0.5554 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001866/0.527, allocations: 135.3 kB / 0.5556 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006199/0.5332, allocations: 3.161 MB / 0.5587 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01834/0.5516, allocations: 11.62 MB / 0.57 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.5547, allocations: 2.176 MB / 0.5721 GB, free: 288 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.5565, allocations: 1.236 MB / 0.5733 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003216/0.5568, allocations: 215.5 kB / 0.5735 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.5569, allocations: 43.88 kB / 0.5736 GB, free: 14.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 3.546e-06/0.5569, allocations: 0 / 0.5736 GB, free: 14.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.01681/0.5737, allocations: 7.909 MB / 0.5813 GB, free: 6.762 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.5738, allocations: 68.72 kB / 0.5814 GB, free: 6.684 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.5767, allocations: 1.929 MB / 0.5833 GB, free: 4.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.5769, allocations: 49.7 kB / 0.5833 GB, free: 4.656 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009482/0.5778, allocations: 1.362 MB / 0.5846 GB, free: 3.277 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/0.5783, allocations: 0.5199 MB / 0.5851 GB, free: 2.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-05/0.5784, allocations: 36 kB / 0.5852 GB, free: 2.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.5786, allocations: 373.9 kB / 0.5855 GB, free: 2.344 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.58, allocations: 0.8901 MB / 0.5864 GB, free: 1.453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.5816, allocations: 1.336 MB / 0.5877 GB, free: 15.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003236/0.5849, allocations: 2.381 MB / 0.59 GB, free: 13.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.5849, allocations: 4 kB / 0.59 GB, free: 13.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005244/0.5901, allocations: 2.936 MB / 0.5929 GB, free: 10.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.5902, allocations: 12 kB / 0.5929 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.5902, allocations: 19.97 kB / 0.5929 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009016/0.5911, allocations: 391.5 kB / 0.5933 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/0.5929, allocations: 451.2 kB / 0.5937 GB, free: 9.504 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006041/0.5989, allocations: 6.202 MB / 0.5998 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.6008, allocations: 123.9 kB / 0.5999 GB, free: 2.781 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.601, allocations: 71.98 kB / 0.6 GB, free: 2.711 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.001961/0.6029, allocations: 0.9038 MB / 0.6009 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005953/0.6035, allocations: 209.4 kB / 0.6011 GB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005471/0.609, allocations: 2.911 MB / 0.6039 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.6091, allocations: 16 kB / 0.6039 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.6091, allocations: 12 kB / 0.6039 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6091, allocations: 7.969 kB / 0.6039 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.6194, allocations: 6.142 MB / 0.6099 GB, free: 8.352 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.6195, allocations: 8.406 kB / 0.6099 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.6205, allocations: 243.6 kB / 0.6102 GB, free: 8.105 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/0.6225, allocations: 0.8165 MB / 0.611 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.6227, allocations: 39.97 kB / 0.611 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/0.6338, allocations: 9.82 MB / 0.6206 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.6338, allocations: 15.86 kB / 0.6206 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006705/0.6405, allocations: 4.167 MB / 0.6247 GB, free: 8.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.6418, allocations: 490.3 kB / 0.6252 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.6421, allocations: 39.98 kB / 0.6252 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.6431, allocations: 103.8 kB / 0.6253 GB, free: 8.109 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.6434, allocations: 113.1 kB / 0.6254 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6435, allocations: 51.98 kB / 0.6255 GB, free: 7.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002164/0.6457, allocations: 1.325 MB / 0.6267 GB, free: 6.602 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6457, allocations: 3.938 kB / 0.6268 GB, free: 6.598 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001959/0.6477, allocations: 0.582 MB / 0.6273 GB, free: 6.016 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * 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.0003791/0.6481, allocations: 194.9 kB / 0.6275 GB, free: 5.812 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003911/0.652, allocations: 2.64 MB / 0.6301 GB, free: 3.113 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.652, allocations: 0 / 0.6301 GB, free: 3.113 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.6543, allocations: 1.65 MB / 0.6317 GB, free: 1.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/0.6574, allocations: 0.5054 MB / 0.6322 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.6675, allocations: 7.166 MB / 0.6392 GB, free: 9.676 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/0.6695, allocations: 2.209 MB / 0.6413 GB, free: 7.438 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00166/0.6711, allocations: 469.7 kB / 0.6418 GB, free: 6.977 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004541/0.6716, allocations: 159.4 kB / 0.6419 GB, free: 6.82 MB / 458.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6716, allocations: 0 / 0.6419 GB, free: 6.82 MB / 458.7 MB Notification: Performance of Templates: time 0.05624/0.7278, allocations: 31.11 MB / 0.6723 GB, free: 7.992 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches