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.SMR_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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001856/0.001856, allocations: 178.7 kB / 16.71 MB, free: 5.09 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.307/1.307, allocations: 225.7 MB / 243.2 MB, free: 8.473 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.000758/0.0007581, allocations: 88.19 kB / 294.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002277, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1797, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.006348/0.1861, allocations: 9.035 MB / 413.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003485/0.1896, allocations: 3.452 MB / 417.1 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000589/0.1902, allocations: 51.75 kB / 417.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009856/0.1912, allocations: 0.6136 MB / 417.7 MB, free: 18.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00128/0.1925, allocations: 0.7654 MB / 418.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.193, allocations: 355.6 kB / 418.8 MB, free: 16.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.1949, allocations: 3.371 MB / 422.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001759/0.1967, allocations: 2.08 MB / 424.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.1978, allocations: 1.023 MB / 425.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.1989, allocations: 1.431 MB / 426.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.1991, allocations: 144 kB / 426.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000528/0.1997, allocations: 255.8 kB / 427.1 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004976/0.2002, allocations: 0.7746 MB / 427.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008957/0.2011, allocations: 1.365 MB / 429.3 MB, free: 6.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002238/0.2033, allocations: 4.348 MB / 433.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2033, allocations: 0 / 433.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2034, allocations: 0 / 433.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.633e-05/0.2034, allocations: 0 / 433.6 MB, free: 2.047 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.004015/0.2074, allocations: 2.79 MB / 436.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2075, allocations: 8.031 kB / 436.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006371/0.2081, allocations: 325.3 kB / 436.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.2105, allocations: 1.705 MB / 438.4 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.2107, allocations: 185 kB / 438.6 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002998/0.211, allocations: 228 kB / 438.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004546/0.2155, allocations: 3.133 MB / 442 MB, free: 9.473 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.661e-05/0.2156, allocations: 7.906 kB / 442 MB, free: 9.465 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/0.2158, allocations: 99.98 kB / 442.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.063e-05/0.2159, allocations: 108.6 kB / 442.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003912/0.2198, allocations: 2.708 MB / 444.9 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01272/0.2326, allocations: 9.786 MB / 454.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/0.2349, allocations: 2.166 MB / 456.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.2366, allocations: 1.132 MB / 458 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002721/0.2369, allocations: 207.2 kB / 458.2 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.2369, allocations: 43.56 kB / 458.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.617e-06/0.237, allocations: 0 / 458.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.01259/0.2495, allocations: 6.952 MB / 465.2 MB, free: 1.582 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.2496, allocations: 64.72 kB / 465.2 MB, free: 1.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.2518, allocations: 1.735 MB / 467 MB, free: 15.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.106e-05/0.2519, allocations: 49.7 kB / 467 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008091/0.2527, allocations: 1.159 MB / 468.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003464/0.253, allocations: 449.5 kB / 468.6 MB, free: 14.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.2531, allocations: 32 kB / 468.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2533, allocations: 369.8 kB / 469 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.2545, allocations: 0.8003 MB / 469.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.2558, allocations: 1.209 MB / 471 MB, free: 11.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002469/0.2583, allocations: 2.117 MB / 473.1 MB, free: 9.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.2583, allocations: 4 kB / 473.2 MB, free: 9.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003801/0.2621, allocations: 2.686 MB / 475.8 MB, free: 6.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.2622, allocations: 12 kB / 475.8 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.2622, allocations: 12 kB / 475.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008997/0.2631, allocations: 415.5 kB / 476.3 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.2644, allocations: 375.4 kB / 476.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006122/0.2705, allocations: 6.479 MB / 483.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.2717, allocations: 115.8 kB / 483.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.2718, allocations: 67.98 kB / 483.3 MB, free: 14.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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 {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001206/0.273, allocations: 0.7938 MB / 484.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002365/0.2733, allocations: 185.7 kB / 484.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00357/0.2769, allocations: 2.407 MB / 486.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.2769, allocations: 19.88 kB / 486.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.2769, allocations: 4 kB / 486.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.2769, allocations: 3.984 kB / 486.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.2844, allocations: 5.151 MB / 491.9 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.2844, allocations: 7.938 kB / 491.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009638/0.2854, allocations: 244.1 kB / 492.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.2864, allocations: 447 kB / 492.5 MB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.281e-05/0.2865, allocations: 39.97 kB / 492.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006716/0.2932, allocations: 7.943 MB / 0.4888 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/0.2933, allocations: 11.88 kB / 0.4888 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00497/0.2982, allocations: 3.531 MB / 0.4922 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008029/0.2991, allocations: 438.7 kB / 0.4927 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.2994, allocations: 35.98 kB / 0.4927 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008948/0.3003, allocations: 91.91 kB / 0.4928 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.3005, allocations: 120.7 kB / 0.4929 GB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.3006, allocations: 39.94 kB / 0.4929 GB, free: 8.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001638/0.3023, allocations: 1.19 MB / 0.4941 GB, free: 7.102 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3023, allocations: 0 / 0.4941 GB, free: 7.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001472/0.3037, allocations: 0.5001 MB / 0.4946 GB, free: 6.602 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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): 4 systems {(3,11,100.0%), (1,1,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.0003394/0.3041, allocations: 203 kB / 0.4948 GB, free: 6.395 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00361/0.3077, allocations: 2.479 MB / 0.4972 GB, free: 3.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3077, allocations: 0 / 0.4972 GB, free: 3.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.31, allocations: 1.623 MB / 0.4988 GB, free: 2.184 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.3125, allocations: 451.1 kB / 0.4992 GB, free: 1.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1504/0.4629, allocations: 6.195 MB / 0.5053 GB, free: 93.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.4643, allocations: 1.997 MB / 0.5072 GB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001359/0.4657, allocations: 444.4 kB / 0.5076 GB, free: 92.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.466, allocations: 131.2 kB / 0.5078 GB, free: 92.36 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.466, allocations: 0.9375 kB / 0.5078 GB, free: 92.36 MB / 378.7 MB Notification: Performance of Templates: time 0.03527/0.5013, allocations: 26.19 MB / 0.5333 GB, free: 71.53 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches