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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008546/0.0008547, allocations: 174.2 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.288/1.288, allocations: 205.6 MB / 223.7 MB, free: 8.945 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.0006614/0.0006615, allocations: 82.42 kB / 272.1 MB, free: 8.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.000269, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2308, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01226/0.2431, allocations: 13.99 MB / 390.6 MB, free: 34.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008739/0.2519, allocations: 6.582 MB / 397.2 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.2544, allocations: 91.56 kB / 397.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.2569, allocations: 0.9724 MB / 398.2 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003393/0.2603, allocations: 1.566 MB / 399.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001874/0.2622, allocations: 1.246 MB / 401.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.2661, allocations: 4.089 MB / 405.1 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002573/0.2687, allocations: 2.97 MB / 408.1 MB, free: 16.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.2702, allocations: 1.338 MB / 409.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.2717, allocations: 1.804 MB / 411.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002915/0.272, allocations: 208 kB / 411.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009256/0.2729, allocations: 435.6 kB / 411.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005705/0.2735, allocations: 0.899 MB / 412.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.2748, allocations: 1.843 MB / 414.6 MB, free: 9.781 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003994/0.2788, allocations: 6.423 MB / 421 MB, free: 3.336 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2788, allocations: 0 / 421 MB, free: 3.336 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2788, allocations: 0 / 421 MB, free: 3.336 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.2789, allocations: 0 / 421 MB, free: 3.336 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007384/0.2863, allocations: 3.917 MB / 425 MB, free: 15.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.2864, allocations: 12.03 kB / 425 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002909/0.2893, allocations: 0.6715 MB / 425.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003977/0.2933, allocations: 2.33 MB / 428 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/0.2936, allocations: 275.4 kB / 428.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005381/0.2941, allocations: 351.8 kB / 428.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007657/0.3018, allocations: 4.437 MB / 433 MB, free: 7.172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.796e-05/0.3019, allocations: 11.91 kB / 433 MB, free: 7.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002775/0.3022, allocations: 140 kB / 433.2 MB, free: 7.023 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.3023, allocations: 166.7 kB / 433.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006182/0.3085, allocations: 3.712 MB / 437.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/0.3287, allocations: 14.56 MB / 451.6 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005304/0.334, allocations: 5.362 MB / 457 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002193/0.3363, allocations: 1.282 MB / 458.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008201/0.3445, allocations: 3.815 MB / 462.1 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.034e-05/0.3446, allocations: 51.75 kB / 462.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 3.206e-06/0.3446, allocations: 0 / 462.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.01116/0.3557, allocations: 5.471 MB / 467.6 MB, free: 3.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.3558, allocations: 64.72 kB / 467.7 MB, free: 3.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004647/0.3605, allocations: 2.082 MB / 469.7 MB, free: 1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.3606, allocations: 49.7 kB / 469.8 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.362, allocations: 1.649 MB / 471.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000474/0.3625, allocations: 469.3 kB / 471.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.3626, allocations: 36 kB / 471.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3628, allocations: 377.9 kB / 472.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.364, allocations: 0.7106 MB / 473 MB, free: 13.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.3657, allocations: 1.349 MB / 474.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002978/0.3687, allocations: 2.219 MB / 476.6 MB, free: 9.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/0.3687, allocations: 7.938 kB / 476.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00381/0.3726, allocations: 2.51 MB / 479.1 MB, free: 6.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3726, allocations: 18.81 kB / 479.1 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.229e-05/0.3726, allocations: 20 kB / 479.1 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.373, allocations: 138.5 kB / 479.3 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.3746, allocations: 471.4 kB / 479.7 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/0.3772, allocations: 3.075 MB / 482.8 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.3788, allocations: 111.8 kB / 482.9 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.3789, allocations: 84 kB / 483 MB, free: 2.816 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001813/0.3808, allocations: 1.048 MB / 484 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004367/0.3812, allocations: 217.3 kB / 484.3 MB, free: 1.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.3847, allocations: 2.173 MB / 486.4 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.3847, allocations: 16 kB / 486.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.3847, allocations: 4 kB / 486.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.3848, allocations: 7.969 kB / 486.5 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/0.393, allocations: 5.161 MB / 491.6 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.393, allocations: 7.938 kB / 491.6 MB, free: 9.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009861/0.394, allocations: 223.7 kB / 491.8 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006971/0.3947, allocations: 275.4 kB / 492.1 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.3949, allocations: 32 kB / 492.1 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006442/0.4013, allocations: 7.111 MB / 499.3 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.4013, allocations: 4 kB / 499.3 MB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1873/0.5886, allocations: 3.175 MB / 0.4907 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.5898, allocations: 455 kB / 0.4911 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/0.5901, allocations: 29 kB / 0.4911 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009457/0.591, allocations: 78.58 kB / 0.4912 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.5912, allocations: 95.58 kB / 0.4913 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-05/0.5913, allocations: 41.09 kB / 0.4913 GB, free: 105.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002482/0.5938, allocations: 1.409 MB / 0.4927 GB, free: 104.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 3e-07/0.5938, allocations: 0 / 0.4927 GB, free: 104.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003427/0.5973, allocations: 0.5565 MB / 0.4932 GB, free: 104.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004107/0.5977, allocations: 167.2 kB / 0.4934 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003538/0.6012, allocations: 2.084 MB / 0.4954 GB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.6013, allocations: 0 / 0.4954 GB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.6031, allocations: 1.378 MB / 0.4968 GB, free: 103 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/0.6061, allocations: 0.5227 MB / 0.4973 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009849/0.616, allocations: 7.72 MB / 0.5048 GB, free: 98.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.6178, allocations: 2.413 MB / 0.5072 GB, free: 97.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001684/0.6195, allocations: 0.4896 MB / 0.5077 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.6199, allocations: 156.9 kB / 0.5078 GB, free: 97.28 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6199, allocations: 0 / 0.5078 GB, free: 97.28 MB / 378.7 MB Notification: Performance of Templates: time 0.04555/0.6654, allocations: 27.1 MB / 0.5343 GB, free: 71.05 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_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_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches