Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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) 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 182.4 kB / 16.71 MB, free: 4.938 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.238/1.238, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007288/0.0007288, allocations: 92.83 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 15.94 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2097, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.008562/0.2183, allocations: 10.48 MB / 415.1 MB, free: 20.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006631/0.225, allocations: 4.273 MB / 419.3 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.2273, allocations: 63.69 kB / 419.4 MB, free: 16.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002441/0.2298, allocations: 0.7421 MB / 420.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003126/0.2329, allocations: 0.8936 MB / 421 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.2344, allocations: 463.5 kB / 421.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003527/0.238, allocations: 3.869 MB / 425.4 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002663/0.2406, allocations: 2.252 MB / 427.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.2423, allocations: 1.178 MB / 428.8 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002212/0.2445, allocations: 1.626 MB / 430.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006732/0.2452, allocations: 172 kB / 430.6 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.2465, allocations: 427.5 kB / 431 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.2476, allocations: 0.8641 MB / 431.9 MB, free: 3.766 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.2493, allocations: 1.552 MB / 433.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004158/0.2535, allocations: 5.029 MB / 438.4 MB, free: 13.15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2535, allocations: 0 / 438.4 MB, free: 13.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.2536, allocations: 0 / 438.4 MB, free: 13.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001193/0.2537, allocations: 3.938 kB / 438.4 MB, free: 13.15 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.00631/0.26, allocations: 3.155 MB / 441.6 MB, free: 9.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2601, allocations: 12.03 kB / 441.6 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.2615, allocations: 436.7 kB / 442 MB, free: 9.488 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.2648, allocations: 1.906 MB / 443.9 MB, free: 7.527 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.265, allocations: 213.3 kB / 444.2 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003918/0.2654, allocations: 267.9 kB / 444.4 MB, free: 7.055 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006277/0.2716, allocations: 3.521 MB / 447.9 MB, free: 3.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.268e-05/0.2718, allocations: 7.938 kB / 447.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.272, allocations: 112 kB / 448.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/0.2721, allocations: 125.2 kB / 448.2 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005605/0.2777, allocations: 2.98 MB / 451.2 MB, free: 224 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.2951, allocations: 11.16 MB / 462.3 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.2978, allocations: 2.292 MB / 464.6 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.2996, allocations: 1.203 MB / 465.8 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002738/0.2999, allocations: 203.5 kB / 466 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3, allocations: 51.81 kB / 466.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=131): time 3.346e-06/0.3, allocations: 0 / 466.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of matching and sorting (n=148): time 0.01488/0.3149, allocations: 7.643 MB / 473.7 MB, free: 8.973 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.3149, allocations: 68.72 kB / 473.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002747/0.3177, allocations: 1.96 MB / 475.7 MB, free: 6.891 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001539/0.3179, allocations: 49.7 kB / 475.8 MB, free: 6.836 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009092/0.3188, allocations: 1.319 MB / 477.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004044/0.3192, allocations: 0.5005 MB / 477.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.943e-05/0.3193, allocations: 36 kB / 477.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3195, allocations: 381.9 kB / 478 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.3208, allocations: 0.8901 MB / 478.9 MB, free: 3.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.3224, allocations: 1.383 MB / 480.3 MB, free: 2.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/0.3255, allocations: 2.401 MB / 482.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.3255, allocations: 4 kB / 482.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004641/0.3302, allocations: 3.005 MB / 485.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3302, allocations: 16.31 kB / 485.7 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/0.3302, allocations: 19.98 kB / 485.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.3313, allocations: 455.1 kB / 486.2 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.3328, allocations: 443.3 kB / 486.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00574/0.3386, allocations: 5.589 MB / 492.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.3402, allocations: 131.7 kB / 492.3 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.3403, allocations: 72 kB / 492.4 MB, free: 5.469 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001338/0.3417, allocations: 0.8562 MB / 493.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.342, allocations: 209.5 kB / 493.5 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.3461, allocations: 2.618 MB / 496.1 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/0.3461, allocations: 16 kB / 496.1 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3461, allocations: 4 kB / 496.1 MB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3462, allocations: 7.969 kB / 496.1 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008847/0.355, allocations: 5.668 MB / 0.49 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.3551, allocations: 7.984 kB / 0.49 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.3562, allocations: 291.5 kB / 0.4903 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.3575, allocations: 497.9 kB / 0.4908 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.3576, allocations: 43.92 kB / 0.4908 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00737/0.365, allocations: 7.061 MB / 0.4977 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.365, allocations: 7.938 kB / 0.4977 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1677/0.5327, allocations: 3.86 MB / 0.5015 GB, free: 92.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/0.5343, allocations: 491.6 kB / 0.502 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006737/0.535, allocations: 35.12 kB / 0.502 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.5366, allocations: 115.3 kB / 0.5021 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/0.537, allocations: 117 kB / 0.5022 GB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.5371, allocations: 45.58 kB / 0.5022 GB, free: 92.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002179/0.5393, allocations: 1.346 MB / 0.5036 GB, free: 92.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5393, allocations: 0 / 0.5036 GB, free: 92.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001804/0.5411, allocations: 0.5873 MB / 0.5041 GB, free: 92.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * 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 {(3,16,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003964/0.5415, allocations: 223.4 kB / 0.5043 GB, free: 92.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.5452, allocations: 2.618 MB / 0.5069 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5452, allocations: 5.406 kB / 0.5069 GB, free: 91.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.5474, allocations: 1.617 MB / 0.5085 GB, free: 90.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.5503, allocations: 478.3 kB / 0.5089 GB, free: 90.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007195/0.5575, allocations: 6.979 MB / 0.5158 GB, free: 86.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.5588, allocations: 2.131 MB / 0.5178 GB, free: 85.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001373/0.5602, allocations: 473.1 kB / 0.5183 GB, free: 85.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.5606, allocations: 142.6 kB / 0.5184 GB, free: 85.79 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.5606, allocations: 0 / 0.5184 GB, free: 85.79 MB / 378.7 MB Notification: Performance of Templates: time 0.04158/0.6022, allocations: 29.2 MB / 0.5469 GB, free: 57.36 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches