Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000882/0.0008823, allocations: 182.2 kB / 16.71 MB, free: 4.969 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.243/1.243, allocations: 225.7 MB / 243.2 MB, free: 8.453 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.0007499/0.0007499, allocations: 106.4 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002443, allocations: 4 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2287, allocations: 50.42 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02736/0.2561, allocations: 34.71 MB / 439.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02303/0.2792, allocations: 12.34 MB / 451.7 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008381/0.2876, allocations: 279.1 kB / 451.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006116/0.2937, allocations: 2.115 MB / 454 MB, free: 13.17 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01114/0.3049, allocations: 4.039 MB / 458.1 MB, free: 8.871 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006429/0.3113, allocations: 2.69 MB / 460.8 MB, free: 5.996 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0164/0.3277, allocations: 12.94 MB / 473.7 MB, free: 9 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04207/0.3699, allocations: 29.96 MB / 0.4919 GB, free: 9.414 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008639/0.3785, allocations: 4.853 MB / 0.4966 GB, free: 4.543 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2382/0.6168, allocations: 5.927 MB / 0.5024 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003963/0.6208, allocations: 0.7614 MB / 0.5031 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005786/0.6266, allocations: 1.136 MB / 0.5043 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003335/0.63, allocations: 2.492 MB / 0.5067 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01073/0.6407, allocations: 5.967 MB / 0.5125 GB, free: 32.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02225/0.663, allocations: 24.25 MB / 0.5362 GB, free: 22.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.6631, allocations: 0 / 0.5362 GB, free: 22.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.6631, allocations: 0 / 0.5362 GB, free: 22.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007668/0.6638, allocations: 1.5 kB / 0.5362 GB, free: 22.16 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03014/0.694, allocations: 12.42 MB / 0.5483 GB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.694, allocations: 7.75 kB / 0.5483 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02976/0.7238, allocations: 6.158 MB / 0.5543 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/0.7366, allocations: 7.806 MB / 0.562 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006033/0.7372, allocations: 0.9089 MB / 0.5629 GB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004085/0.7413, allocations: 1.197 MB / 0.564 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0415/0.7828, allocations: 18.56 MB / 0.5821 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003531/0.7832, allocations: 26.48 kB / 0.5822 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001763/0.785, allocations: 0.4928 MB / 0.5827 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005565/0.7855, allocations: 0.6409 MB / 0.5833 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03309/0.8186, allocations: 16.67 MB / 0.5996 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09487/0.9135, allocations: 59.07 MB / 0.6572 GB, free: 15.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.198/1.112, allocations: 32.82 MB / 0.6893 GB, free: 130.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005566/1.117, allocations: 3.732 MB / 0.6929 GB, free: 130.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01255/1.13, allocations: 8.686 MB / 0.7014 GB, free: 127.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/1.13, allocations: 71.97 kB / 0.7015 GB, free: 127.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=349): time 5.29e-06/1.13, allocations: 0 / 0.7015 GB, free: 127.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=389): time 0.02932/1.159, allocations: 17.54 MB / 0.7186 GB, free: 120.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/1.159, allocations: 91.53 kB / 0.7187 GB, free: 120 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00598/1.165, allocations: 4.981 MB / 0.7236 GB, free: 118.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006513/1.166, allocations: 89.52 kB / 0.7237 GB, free: 118.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/1.168, allocations: 5.442 MB / 0.729 GB, free: 114 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/1.169, allocations: 1.356 MB / 0.7303 GB, free: 113 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003118/1.17, allocations: 135.2 kB / 0.7304 GB, free: 112.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002784/1.17, allocations: 0.5743 MB / 0.731 GB, free: 112.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003472/1.173, allocations: 2.883 MB / 0.7338 GB, free: 111.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004271/1.178, allocations: 5.849 MB / 0.7395 GB, free: 106.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008986/1.187, allocations: 9.408 MB / 0.7487 GB, free: 96.21 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.907e-05/1.187, allocations: 28 kB / 0.7487 GB, free: 96.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01299/1.2, allocations: 9.79 MB / 0.7583 GB, free: 87.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.713e-05/1.2, allocations: 48 kB / 0.7583 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.2, allocations: 100 kB / 0.7584 GB, free: 87.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/1.202, allocations: 0.9384 MB / 0.7593 GB, free: 86.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0049/1.207, allocations: 1.583 MB / 0.7609 GB, free: 84.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008747/1.216, allocations: 9.489 MB / 0.7702 GB, free: 74.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005644/1.222, allocations: 403.2 kB / 0.7705 GB, free: 74.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008376/1.222, allocations: 352 kB / 0.7709 GB, free: 74.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00686/1.229, allocations: 4.25 MB / 0.775 GB, free: 69.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008526/1.23, allocations: 0.5131 MB / 0.7755 GB, free: 69.38 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008905/1.239, allocations: 6.464 MB / 0.7818 GB, free: 62.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/1.239, allocations: 44 kB / 0.7819 GB, free: 62.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.239, allocations: 11.75 kB / 0.7819 GB, free: 62.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.764e-05/1.239, allocations: 19.92 kB / 0.7819 GB, free: 62.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02075/1.26, allocations: 15.7 MB / 0.7972 GB, free: 47.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/1.26, allocations: 4 kB / 0.7972 GB, free: 47.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002831/1.263, allocations: 0.7414 MB / 0.798 GB, free: 46.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/1.265, allocations: 0.7879 MB / 0.7987 GB, free: 45.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/1.265, allocations: 87.97 kB / 0.7988 GB, free: 45.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007449/1.272, allocations: 8.661 MB / 0.8073 GB, free: 36.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.272, allocations: 7.938 kB / 0.8073 GB, free: 36.35 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01137/1.284, allocations: 9.456 MB / 0.8165 GB, free: 26.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.286, allocations: 1.068 MB / 0.8176 GB, free: 25.69 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007348/1.287, allocations: 72 kB / 0.8176 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/1.289, allocations: 227.7 kB / 0.8179 GB, free: 25.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/1.289, allocations: 258.8 kB / 0.8181 GB, free: 25.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002236/1.29, allocations: 120 kB / 0.8182 GB, free: 25.03 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004125/1.294, allocations: 3.311 MB / 0.8214 GB, free: 21.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.294, allocations: 0 / 0.8214 GB, free: 21.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005769/1.299, allocations: 1.878 MB / 0.8233 GB, free: 19.86 MB / 474.7 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%), (8,38,59.4%), (1,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.0006039/1.3, allocations: 269.2 kB / 0.8235 GB, free: 19.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00941/1.31, allocations: 7.598 MB / 0.831 GB, free: 11.92 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/1.31, allocations: 4 kB / 0.831 GB, free: 11.92 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004176/1.314, allocations: 3.55 MB / 0.8344 GB, free: 8.293 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008274/1.322, allocations: 1.209 MB / 0.8356 GB, free: 7.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2084/1.531, allocations: 25.02 MB / 0.86 GB, free: 136.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008794/1.539, allocations: 7.32 MB / 0.8672 GB, free: 135.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005739/1.545, allocations: 2.152 MB / 0.8693 GB, free: 134.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/1.546, allocations: 405.2 kB / 0.8697 GB, free: 134.9 MB / 474.7 MB Notification: Performance of SimCode: time 5.71e-07/1.546, allocations: 0 / 0.8697 GB, free: 134.9 MB / 474.7 MB Notification: Performance of Templates: time 0.1075/1.654, allocations: 72.51 MB / 0.9405 GB, free: 73.66 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches