Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.0008019/0.0008019, allocations: 184.3 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.191/1.191, allocations: 225.7 MB / 243.2 MB, free: 8.438 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.000715/0.0007153, allocations: 98.75 kB / 294.4 MB, free: 9.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 11.94 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1828, allocations: 50.41 MB / 404.6 MB, free: 31.28 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.00966/0.1925, allocations: 13.4 MB / 418 MB, free: 17.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006766/0.1993, allocations: 6.212 MB / 424.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.2007, allocations: 87.69 kB / 424.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.2026, allocations: 0.9287 MB / 425.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002318/0.205, allocations: 1.508 MB / 426.7 MB, free: 8.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.2063, allocations: 1.18 MB / 427.9 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002567/0.2089, allocations: 3.749 MB / 431.7 MB, free: 3.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002161/0.2111, allocations: 2.747 MB / 434.4 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.2122, allocations: 1.233 MB / 435.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001654/0.2139, allocations: 1.645 MB / 437.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002987/0.2142, allocations: 192 kB / 437.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000878/0.2151, allocations: 411.7 kB / 437.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006543/0.2157, allocations: 0.8017 MB / 438.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.2172, allocations: 1.68 MB / 440.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004608/0.2218, allocations: 5.859 MB / 446.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.2218, allocations: 0 / 446.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2218, allocations: 0 / 446.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.599e-05/0.2219, allocations: 0 / 446.2 MB, free: 4.945 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.00689/0.2288, allocations: 3.591 MB / 449.8 MB, free: 1.281 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2288, allocations: 8.031 kB / 449.8 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/0.2312, allocations: 0.6172 MB / 450.4 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003308/0.2346, allocations: 2.202 MB / 452.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.2348, allocations: 238.9 kB / 452.9 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004217/0.2352, allocations: 319.8 kB / 453.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006164/0.2414, allocations: 4.019 MB / 457.2 MB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/0.2414, allocations: 8 kB / 457.2 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/0.2417, allocations: 124 kB / 457.3 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.2418, allocations: 146.2 kB / 457.5 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005235/0.2471, allocations: 3.374 MB / 460.8 MB, free: 6.109 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01691/0.264, allocations: 13.35 MB / 474.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003693/0.2677, allocations: 3.958 MB / 478.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/0.2692, allocations: 1.007 MB / 479.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003786/0.273, allocations: 2.669 MB / 481.8 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.2731, allocations: 47.56 kB / 481.9 MB, free: 32 kB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 2.214e-06/0.2731, allocations: 0 / 481.9 MB, free: 32 kB / 346.7 MB Notification: Performance of matching and sorting (n=142): time 0.01017/0.2833, allocations: 5.967 MB / 487.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.2833, allocations: 76.66 kB / 487.9 MB, free: 9.875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.2858, allocations: 1.873 MB / 489.8 MB, free: 7.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.004e-05/0.2859, allocations: 49.7 kB / 489.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.287, allocations: 1.501 MB / 491.3 MB, free: 6.383 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000378/0.2874, allocations: 496.9 kB / 491.8 MB, free: 5.891 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.109e-05/0.2875, allocations: 36 kB / 491.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2876, allocations: 381.8 kB / 492.2 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2887, allocations: 0.7652 MB / 493 MB, free: 4.711 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.2901, allocations: 1.364 MB / 494.4 MB, free: 3.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/0.2929, allocations: 2.308 MB / 496.7 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.293, allocations: 8 kB / 496.7 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003802/0.2968, allocations: 2.462 MB / 499.1 MB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.2968, allocations: 12 kB / 499.1 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-05/0.2968, allocations: 23.94 kB / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000344/0.2972, allocations: 118.8 kB / 499.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.2989, allocations: 483.2 kB / 499.8 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009132/0.2998, allocations: 1.315 MB / 0.4893 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.3012, allocations: 111.8 kB / 0.4894 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.3013, allocations: 87.98 kB / 0.4895 GB, free: 11.73 MB / 378.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.001539/0.3029, allocations: 0.9904 MB / 0.4905 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003274/0.3032, allocations: 205.5 kB / 0.4907 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003051/0.3062, allocations: 1.95 MB / 0.4926 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.3063, allocations: 19.94 kB / 0.4926 GB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3063, allocations: 4 kB / 0.4926 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3063, allocations: 3.984 kB / 0.4926 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007168/0.3135, allocations: 4.989 MB / 0.4975 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.3135, allocations: 8 kB / 0.4975 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.3148, allocations: 307.6 kB / 0.4978 GB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002961/0.3151, allocations: 98.45 kB / 0.4979 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.057e-05/0.3152, allocations: 35.98 kB / 0.4979 GB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008481/0.3161, allocations: 1.264 MB / 0.4991 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3161, allocations: 8.156 kB / 0.4992 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1722/0.4883, allocations: 3.07 MB / 0.5022 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4894, allocations: 463.7 kB / 0.5026 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.4896, allocations: 28 kB / 0.5026 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009278/0.4905, allocations: 85.27 kB / 0.5027 GB, free: 92.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.4907, allocations: 89.34 kB / 0.5028 GB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.4908, allocations: 38.62 kB / 0.5028 GB, free: 92.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001638/0.4925, allocations: 1.266 MB / 0.5041 GB, free: 91.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.4925, allocations: 0 / 0.5041 GB, free: 91.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001398/0.4939, allocations: 0.5421 MB / 0.5046 GB, free: 91.73 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.0002453/0.4941, allocations: 172.6 kB / 0.5048 GB, free: 91.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.4969, allocations: 2.204 MB / 0.5069 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4969, allocations: 0.5312 kB / 0.5069 GB, free: 90.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.4982, allocations: 1.177 MB / 0.5081 GB, free: 89.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.5007, allocations: 495.4 kB / 0.5085 GB, free: 89.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007884/0.5086, allocations: 7.071 MB / 0.5154 GB, free: 85.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/0.51, allocations: 2.269 MB / 0.5177 GB, free: 84.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001564/0.5115, allocations: 0.5093 MB / 0.5182 GB, free: 84.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.5119, allocations: 151.6 kB / 0.5183 GB, free: 84.67 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5119, allocations: 0 / 0.5183 GB, free: 84.67 MB / 378.7 MB Notification: Performance of Templates: time 0.03674/0.5487, allocations: 24.86 MB / 0.5426 GB, free: 61.02 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches