Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.0009242/0.0009243, allocations: 178.6 kB / 17.36 MB, free: 4.445 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.304/1.304, allocations: 205.6 MB / 223.7 MB, free: 8.941 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.0007988/0.0007989, allocations: 90.36 kB / 272.1 MB, free: 8.113 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002852, allocations: 8 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2396, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01415/0.2538, allocations: 13.36 MB / 390 MB, free: 35.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008829/0.2626, allocations: 6.242 MB / 396.2 MB, free: 28.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003471/0.2662, allocations: 79.69 kB / 396.3 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002938/0.2691, allocations: 0.9259 MB / 397.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004211/0.2734, allocations: 1.492 MB / 398.7 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002431/0.2758, allocations: 1.188 MB / 399.9 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005274/0.2811, allocations: 3.775 MB / 403.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003878/0.285, allocations: 2.692 MB / 406.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.2869, allocations: 1.237 MB / 407.6 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002247/0.2892, allocations: 1.645 MB / 409.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004749/0.2897, allocations: 192 kB / 409.4 MB, free: 15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.2909, allocations: 407.7 kB / 409.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000563/0.2915, allocations: 0.8055 MB / 410.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.2929, allocations: 1.676 MB / 412.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.2966, allocations: 5.851 MB / 418.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2967, allocations: 0 / 418.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2967, allocations: 0 / 418.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.72e-05/0.2968, allocations: 0 / 418.2 MB, free: 6.23 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.006501/0.3033, allocations: 3.575 MB / 421.7 MB, free: 2.582 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3033, allocations: 12.03 kB / 421.7 MB, free: 2.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002455/0.3058, allocations: 0.6251 MB / 422.4 MB, free: 1.941 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.3087, allocations: 2.097 MB / 424.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.3089, allocations: 238.9 kB / 424.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004228/0.3093, allocations: 311.8 kB / 425 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007289/0.3166, allocations: 4.023 MB / 429 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.777e-05/0.3167, allocations: 15.83 kB / 429 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002575/0.317, allocations: 131.9 kB / 429.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.3171, allocations: 142.2 kB / 429.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005365/0.3225, allocations: 3.358 MB / 432.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/0.3404, allocations: 13.38 MB / 446.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004033/0.3445, allocations: 3.961 MB / 450 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.3461, allocations: 1.011 MB / 451 MB, free: 4.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004589/0.3507, allocations: 2.657 MB / 453.7 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.3508, allocations: 43.56 kB / 453.7 MB, free: 1.402 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 3.106e-06/0.3508, allocations: 4 kB / 453.7 MB, free: 1.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.01142/0.3622, allocations: 5.982 MB / 459.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.3623, allocations: 68.72 kB / 459.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/0.365, allocations: 1.865 MB / 461.6 MB, free: 9.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.756e-05/0.3651, allocations: 49.7 kB / 461.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.3662, allocations: 1.505 MB / 463.2 MB, free: 7.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004058/0.3666, allocations: 492.9 kB / 463.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.145e-05/0.3667, allocations: 44 kB / 463.7 MB, free: 7.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3669, allocations: 377.8 kB / 464.1 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.3681, allocations: 0.7652 MB / 464.9 MB, free: 6.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.3696, allocations: 1.367 MB / 466.2 MB, free: 4.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.3726, allocations: 2.308 MB / 468.5 MB, free: 1.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.3726, allocations: 11.94 kB / 468.5 MB, free: 1.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00405/0.3767, allocations: 2.458 MB / 471 MB, free: 15.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.3767, allocations: 15.44 kB / 471 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.3767, allocations: 23.94 kB / 471 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.3771, allocations: 118.5 kB / 471.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.3789, allocations: 495.2 kB / 471.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.38, allocations: 1.315 MB / 472.9 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.3817, allocations: 123.9 kB / 473.1 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.3819, allocations: 83.98 kB / 473.2 MB, free: 13.08 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00201/0.3839, allocations: 0.9812 MB / 474.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004453/0.3843, allocations: 197.6 kB / 474.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.3876, allocations: 1.957 MB / 476.3 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.3877, allocations: 19.94 kB / 476.3 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.3877, allocations: 3.984 kB / 476.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.3877, allocations: 7.984 kB / 476.3 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00776/0.3955, allocations: 4.977 MB / 481.3 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.3955, allocations: 11.92 kB / 481.3 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.3969, allocations: 319.5 kB / 481.6 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002912/0.3972, allocations: 94.78 kB / 481.7 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.303e-05/0.3973, allocations: 31.98 kB / 481.7 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008706/0.3982, allocations: 1.284 MB / 483 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3982, allocations: 3.938 kB / 483 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00419/0.4024, allocations: 3.069 MB / 486.1 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008389/0.4033, allocations: 466.4 kB / 486.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.4035, allocations: 35.88 kB / 486.6 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000898/0.4044, allocations: 79.91 kB / 486.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.4046, allocations: 93.19 kB / 486.8 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.425e-05/0.4047, allocations: 36 kB / 486.8 MB, free: 15.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001834/0.4065, allocations: 1.273 MB / 488.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4065, allocations: 0 / 488.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001589/0.4081, allocations: 0.5234 MB / 488.6 MB, free: 13.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0003069/0.4084, allocations: 175 kB / 488.8 MB, free: 13.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.4115, allocations: 2.2 MB / 491 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4116, allocations: 0 / 491 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.413, allocations: 1.187 MB / 492.1 MB, free: 9.586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.4155, allocations: 490.2 kB / 492.6 MB, free: 9.102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009215/0.4247, allocations: 7.075 MB / 499.7 MB, free: 1.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1491/0.5738, allocations: 2.255 MB / 0.4902 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001751/0.5756, allocations: 0.5132 MB / 0.4907 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.576, allocations: 150.1 kB / 0.4908 GB, free: 107 MB / 378.7 MB Notification: Performance of SimCode: time 1.874e-06/0.576, allocations: 0 / 0.4908 GB, free: 107 MB / 378.7 MB Notification: Performance of Templates: time 0.04505/0.6211, allocations: 24.82 MB / 0.5151 GB, free: 91.24 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches