Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.001239/0.001239, allocations: 174.1 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.547/1.547, allocations: 205.6 MB / 223.7 MB, free: 8.93 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.0007859/0.0007863, allocations: 106.5 kB / 272.1 MB, free: 8.113 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002868, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.324, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01147/0.3355, allocations: 10.28 MB / 386.9 MB, free: 37.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.348, allocations: 4.232 MB / 391.1 MB, free: 33.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004307/0.3524, allocations: 59.69 kB / 391.2 MB, free: 33.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.3558, allocations: 0.7623 MB / 391.9 MB, free: 33.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005702/0.3615, allocations: 0.8393 MB / 392.8 MB, free: 32.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.3638, allocations: 475.4 kB / 393.2 MB, free: 31.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006328/0.3702, allocations: 3.625 MB / 396.9 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004199/0.3744, allocations: 2.49 MB / 399.4 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002629/0.3771, allocations: 1.14 MB / 400.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003062/0.3801, allocations: 1.622 MB / 402.1 MB, free: 22.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0011/0.3813, allocations: 168 kB / 402.3 MB, free: 22.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001956/0.3832, allocations: 287.7 kB / 402.6 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00177/0.385, allocations: 0.911 MB / 403.5 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003605/0.3887, allocations: 1.552 MB / 405 MB, free: 19.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006425/0.3951, allocations: 5.138 MB / 410.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.3951, allocations: 0 / 410.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3952, allocations: 0 / 410.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003087/0.3955, allocations: 4 kB / 410.2 MB, free: 14.66 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.00856/0.4041, allocations: 3.191 MB / 413.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.4041, allocations: 8.031 kB / 413.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00177/0.4059, allocations: 392.6 kB / 413.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005895/0.4118, allocations: 1.935 MB / 415.7 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.412, allocations: 226 kB / 415.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004111/0.4124, allocations: 291.8 kB / 416.2 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005655/0.4181, allocations: 3.677 MB / 419.9 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.462e-05/0.4182, allocations: 0 / 419.9 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/0.4184, allocations: 112 kB / 420 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.4185, allocations: 141.5 kB / 420.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004341/0.4229, allocations: 3.09 MB / 423.2 MB, free: 1.406 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02124/0.4441, allocations: 11.7 MB / 434.9 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/0.4471, allocations: 1.902 MB / 436.8 MB, free: 3.359 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/0.4491, allocations: 1.088 MB / 437.9 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003396/0.4495, allocations: 211.2 kB / 438.1 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.4496, allocations: 55.5 kB / 438.2 MB, free: 1.957 MB / 314.7 MB Notification: Performance of pre-optimization done (n=125): time 3.757e-06/0.4496, allocations: 0 / 438.2 MB, free: 1.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=140): time 0.01598/0.4656, allocations: 6.545 MB / 444.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.4657, allocations: 64.72 kB / 444.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005132/0.4708, allocations: 1.979 MB / 446.7 MB, free: 9.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004448/0.4713, allocations: 49.7 kB / 446.8 MB, free: 9.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001714/0.4731, allocations: 1.412 MB / 448.2 MB, free: 7.691 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008154/0.4739, allocations: 488.9 kB / 448.7 MB, free: 7.207 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.4741, allocations: 40 kB / 448.7 MB, free: 7.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.4743, allocations: 377.8 kB / 449.1 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.476, allocations: 0.812 MB / 449.9 MB, free: 5.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002258/0.4783, allocations: 1.375 MB / 451.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003981/0.4823, allocations: 2.353 MB / 453.6 MB, free: 1.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.19e-05/0.4824, allocations: 8 kB / 453.6 MB, free: 1.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006064/0.4884, allocations: 2.847 MB / 456.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.4885, allocations: 14.81 kB / 456.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.534e-05/0.4886, allocations: 16 kB / 456.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.4897, allocations: 391.1 kB / 456.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.4915, allocations: 431.3 kB / 457.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008283/0.4998, allocations: 6.147 MB / 463.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/0.5026, allocations: 131.8 kB / 463.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004585/0.503, allocations: 75.98 kB / 463.7 MB, free: 7.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003085/0.5061, allocations: 0.9118 MB / 464.6 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009351/0.5071, allocations: 201.5 kB / 464.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005805/0.5129, allocations: 2.425 MB / 467.2 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.513, allocations: 12 kB / 467.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.731e-05/0.513, allocations: 4 kB / 467.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.513, allocations: 7.984 kB / 467.2 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.5269, allocations: 5.531 MB / 472.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/0.527, allocations: 4 kB / 472.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.5282, allocations: 264.2 kB / 473 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.5294, allocations: 395.1 kB / 473.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.5296, allocations: 43.98 kB / 473.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00796/0.5375, allocations: 7.58 MB / 481 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.5376, allocations: 8.125 kB / 481 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006485/0.5441, allocations: 3.613 MB / 484.6 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/0.5457, allocations: 478.3 kB / 485.1 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007442/0.5465, allocations: 39.92 kB / 485.2 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.5481, allocations: 91.89 kB / 485.2 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002692/0.5484, allocations: 109 kB / 485.4 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.5485, allocations: 40 kB / 485.4 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003179/0.5517, allocations: 1.342 MB / 486.7 MB, free: 15.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5517, allocations: 4 kB / 486.7 MB, free: 15.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002664/0.5544, allocations: 0.5312 MB / 487.3 MB, free: 14.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.0005212/0.5549, allocations: 211.4 kB / 487.5 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004479/0.5594, allocations: 2.473 MB / 489.9 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.5594, allocations: 4.312 kB / 489.9 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002279/0.5617, allocations: 1.495 MB / 491.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004445/0.5662, allocations: 0.4949 MB / 491.9 MB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.5791, allocations: 7.085 MB / 499 MB, free: 2.809 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/0.5822, allocations: 2.193 MB / 0.4895 GB, free: 0.582 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002199/0.5844, allocations: 0.4978 MB / 0.49 GB, free: 84 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2047/0.7891, allocations: 150.8 kB / 0.4901 GB, free: 105.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.263e-06/0.7892, allocations: 0 / 0.4901 GB, free: 105.6 MB / 378.7 MB Notification: Performance of Templates: time 0.05158/0.8408, allocations: 28.06 MB / 0.5175 GB, free: 87.71 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches