Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008164/0.0008164, allocations: 177.2 kB / 17.36 MB, free: 4.316 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.225/1.225, allocations: 205.6 MB / 223.7 MB, free: 8.938 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.0006857/0.0006857, allocations: 98.34 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002325, allocations: 4 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1995, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02796/0.2275, allocations: 35.22 MB / 411.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.2468, allocations: 12.48 MB / 424.3 MB, free: 108 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009/0.2559, allocations: 247.1 kB / 424.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007777/0.2637, allocations: 2.139 MB / 426.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01397/0.2777, allocations: 4.265 MB / 431 MB, free: 9.195 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007045/0.2848, allocations: 2.756 MB / 433.7 MB, free: 6.254 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01716/0.3019, allocations: 13.66 MB / 447.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04393/0.3459, allocations: 30 MB / 477.4 MB, free: 8.906 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008373/0.3543, allocations: 5.067 MB / 482.5 MB, free: 3.82 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01/0.3644, allocations: 6.243 MB / 488.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003285/0.3677, allocations: 0.7773 MB / 489.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005367/0.3731, allocations: 1.148 MB / 490.6 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004398/0.3775, allocations: 2.674 MB / 493.3 MB, free: 8.941 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01103/0.3886, allocations: 6.209 MB / 499.5 MB, free: 2.695 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3165/0.7051, allocations: 24.78 MB / 0.512 GB, free: 44.41 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.7051, allocations: 0 / 0.512 GB, free: 44.41 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.615e-06/0.7051, allocations: 0 / 0.512 GB, free: 44.41 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0006758/0.7058, allocations: 0 / 0.512 GB, free: 44.41 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.03123/0.737, allocations: 12.86 MB / 0.5246 GB, free: 37.92 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.7371, allocations: 8.344 kB / 0.5246 GB, free: 37.92 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04442/0.7815, allocations: 9.137 MB / 0.5335 GB, free: 34.38 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01563/0.7972, allocations: 7.467 MB / 0.5408 GB, free: 31.14 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007721/0.798, allocations: 0.9486 MB / 0.5417 GB, free: 30.6 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004966/0.803, allocations: 1.253 MB / 0.5429 GB, free: 29.77 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05029/0.8533, allocations: 20.05 MB / 0.5625 GB, free: 16.96 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006313/0.8539, allocations: 19.08 kB / 0.5625 GB, free: 16.95 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004456/0.8584, allocations: 0.5184 MB / 0.563 GB, free: 16.84 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006831/0.8591, allocations: 0.7306 MB / 0.5638 GB, free: 16.16 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03715/0.8963, allocations: 18.87 MB / 0.5822 GB, free: 0.7852 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1217/1.018, allocations: 63.63 MB / 0.6443 GB, free: 0.5742 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2094/1.228, allocations: 56.89 MB / 0.6999 GB, free: 105.4 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008522/1.236, allocations: 4.116 MB / 0.7039 GB, free: 105.4 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02414/1.26, allocations: 11.41 MB / 0.715 GB, free: 101.1 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/1.26, allocations: 73.03 kB / 0.7151 GB, free: 101 MB / 458.8 MB Notification: Performance of pre-optimization done (n=349): time 5.31e-06/1.26, allocations: 0 / 0.7151 GB, free: 101 MB / 458.8 MB Notification: Performance of matching and sorting (n=389): time 0.03336/1.294, allocations: 18.13 MB / 0.7328 GB, free: 93.48 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/1.294, allocations: 96.3 kB / 0.7329 GB, free: 93.41 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00787/1.302, allocations: 5.42 MB / 0.7382 GB, free: 91.42 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006176/1.302, allocations: 84.61 kB / 0.7383 GB, free: 91.34 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002485/1.305, allocations: 5.88 MB / 0.744 GB, free: 86.45 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.306, allocations: 1.375 MB / 0.7454 GB, free: 85.21 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/1.306, allocations: 156 kB / 0.7455 GB, free: 85.06 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0002983/1.307, allocations: 0.6057 MB / 0.7461 GB, free: 84.54 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003769/1.31, allocations: 3.055 MB / 0.7491 GB, free: 81.97 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005259/1.316, allocations: 6.724 MB / 0.7556 GB, free: 74.08 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009724/1.325, allocations: 10.55 MB / 0.766 GB, free: 62.47 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/1.326, allocations: 36 kB / 0.766 GB, free: 62.44 MB / 458.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01693/1.343, allocations: 10.74 MB / 0.7765 GB, free: 52.12 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.031e-05/1.343, allocations: 56 kB / 0.7765 GB, free: 52.07 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/1.343, allocations: 132 kB / 0.7767 GB, free: 51.94 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/1.345, allocations: 0.9759 MB / 0.7776 GB, free: 50.95 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005952/1.351, allocations: 1.817 MB / 0.7794 GB, free: 49.13 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009861/1.361, allocations: 9.534 MB / 0.7887 GB, free: 39.21 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00616/1.367, allocations: 447.2 kB / 0.7891 GB, free: 38.77 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000841/1.368, allocations: 420 kB / 0.7895 GB, free: 38.36 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006607/1.375, allocations: 4.455 MB / 0.7939 GB, free: 33.89 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009922/1.376, allocations: 0.5478 MB / 0.7944 GB, free: 33.34 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008894/1.384, allocations: 6.504 MB / 0.8008 GB, free: 26.79 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/1.384, allocations: 40 kB / 0.8008 GB, free: 26.75 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/1.384, allocations: 15.92 kB / 0.8008 GB, free: 26.73 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.71e-05/1.385, allocations: 19.94 kB / 0.8008 GB, free: 26.71 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02401/1.409, allocations: 15.95 MB / 0.8164 GB, free: 10.74 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.409, allocations: 3.984 kB / 0.8164 GB, free: 10.73 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/1.412, allocations: 0.761 MB / 0.8172 GB, free: 9.973 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/1.414, allocations: 0.7846 MB / 0.8179 GB, free: 9.172 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003921/1.414, allocations: 87.91 kB / 0.818 GB, free: 9.086 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007613/1.422, allocations: 8.659 MB / 0.8265 GB, free: 28 kB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.422, allocations: 7.938 kB / 0.8265 GB, free: 20 kB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2263/1.648, allocations: 9.484 MB / 0.8357 GB, free: 140.2 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002729/1.651, allocations: 1.1 MB / 0.8368 GB, free: 139.8 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009674/1.652, allocations: 69.5 kB / 0.8369 GB, free: 139.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/1.654, allocations: 228.4 kB / 0.8371 GB, free: 139.7 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006372/1.655, allocations: 263.2 kB / 0.8373 GB, free: 139.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/1.655, allocations: 113.2 kB / 0.8374 GB, free: 139.7 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006351/1.662, allocations: 3.561 MB / 0.8409 GB, free: 138.4 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.61e-07/1.662, allocations: 0 / 0.8409 GB, free: 138.4 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.007867/1.67, allocations: 1.983 MB / 0.8429 GB, free: 138.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008434/1.67, allocations: 259.7 kB / 0.8431 GB, free: 138 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01184/1.682, allocations: 8.014 MB / 0.8509 GB, free: 134.7 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.682, allocations: 3.906 kB / 0.8509 GB, free: 134.7 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005204/1.688, allocations: 3.531 MB / 0.8544 GB, free: 133 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009086/1.697, allocations: 1.234 MB / 0.8556 GB, free: 132.6 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0399/1.737, allocations: 26.32 MB / 0.8813 GB, free: 111 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01081/1.748, allocations: 7.599 MB / 0.8887 GB, free: 105.2 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.008433/1.756, allocations: 2.363 MB / 0.891 GB, free: 103.6 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00176/1.758, allocations: 432.6 kB / 0.8914 GB, free: 103.2 MB / 458.8 MB Notification: Performance of SimCode: time 9.72e-07/1.758, allocations: 0 / 0.8914 GB, free: 103.2 MB / 458.8 MB Notification: Performance of Templates: time 0.1243/1.882, allocations: 74.8 MB / 0.9645 GB, free: 30.48 MB / 458.8 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches