Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 177.9 kB / 16.71 MB, free: 5.09 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.274/1.274, allocations: 225.7 MB / 243.2 MB, free: 10.21 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.0007593/0.0007595, allocations: 92.64 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002533/0.0002533, allocations: 4 kB / 354.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2412, allocations: 50.41 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.007935/0.2492, allocations: 10.52 MB / 415.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005894/0.2551, allocations: 4.268 MB / 419.4 MB, free: 16.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.2564, allocations: 67.62 kB / 419.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.2578, allocations: 0.769 MB / 420.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.2595, allocations: 0.8588 MB / 421.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007664/0.2603, allocations: 495.5 kB / 421.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002498/0.2628, allocations: 3.703 MB / 425.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002428/0.2653, allocations: 2.605 MB / 427.9 MB, free: 7.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00153/0.2668, allocations: 1.171 MB / 429 MB, free: 6.676 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.2684, allocations: 1.665 MB / 430.7 MB, free: 5.004 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002664/0.2686, allocations: 168 kB / 430.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000623/0.2693, allocations: 287.8 kB / 431.1 MB, free: 4.559 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006822/0.27, allocations: 0.9265 MB / 432.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.2711, allocations: 1.606 MB / 433.7 MB, free: 2.008 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004458/0.2756, allocations: 5.267 MB / 438.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2756, allocations: 0 / 438.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2756, allocations: 0 / 438.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001063/0.2757, allocations: 0 / 438.9 MB, free: 12.72 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.006133/0.2819, allocations: 3.305 MB / 442.2 MB, free: 9.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2819, allocations: 12.03 kB / 442.3 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009056/0.2828, allocations: 400.4 kB / 442.6 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/0.2859, allocations: 2.072 MB / 444.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.2861, allocations: 234.2 kB / 444.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003825/0.2865, allocations: 295.9 kB / 445.2 MB, free: 6.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005726/0.2922, allocations: 3.835 MB / 449.1 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.524e-05/0.2923, allocations: 7.891 kB / 449.1 MB, free: 2.379 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002353/0.2925, allocations: 120 kB / 449.2 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.2926, allocations: 145.7 kB / 449.3 MB, free: 2.117 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004774/0.2974, allocations: 3.235 MB / 452.6 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01714/0.3146, allocations: 12.22 MB / 464.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.3169, allocations: 1.936 MB / 466.7 MB, free: 236 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.3186, allocations: 1.157 MB / 467.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002729/0.3189, allocations: 219.4 kB / 468.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.319, allocations: 43.88 kB / 468.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 2.525e-06/0.319, allocations: 0.5469 kB / 468.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01222/0.3312, allocations: 7.033 MB / 475.2 MB, free: 7.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.3313, allocations: 72.72 kB / 475.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/0.334, allocations: 2.016 MB / 477.3 MB, free: 5.453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.689e-05/0.3341, allocations: 57.64 kB / 477.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.3351, allocations: 1.452 MB / 478.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003985/0.3355, allocations: 0.5353 MB / 479.3 MB, free: 3.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.3356, allocations: 40 kB / 479.4 MB, free: 3.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3358, allocations: 385.8 kB / 479.7 MB, free: 2.957 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.337, allocations: 0.8667 MB / 480.6 MB, free: 2.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.3387, allocations: 1.442 MB / 482 MB, free: 408 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/0.3417, allocations: 2.502 MB / 484.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.3418, allocations: 8 kB / 484.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004532/0.3463, allocations: 2.991 MB / 487.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.3463, allocations: 12.5 kB / 487.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.3464, allocations: 23.94 kB / 487.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008414/0.3472, allocations: 395 kB / 488 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.3488, allocations: 475.2 kB / 488.4 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/0.3541, allocations: 6.143 MB / 494.6 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.3557, allocations: 135.8 kB / 494.7 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/0.3559, allocations: 87.92 kB / 494.8 MB, free: 2.945 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * 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: 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.001599/0.3575, allocations: 0.9303 MB / 495.7 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003463/0.3578, allocations: 217.3 kB / 495.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003999/0.3618, allocations: 2.598 MB / 498.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.3619, allocations: 16 kB / 498.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3619, allocations: 4 kB / 498.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.3619, allocations: 11.97 kB / 498.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009599/0.3715, allocations: 5.859 MB / 0.4926 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.3716, allocations: 8.062 kB / 0.4926 GB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.3727, allocations: 291.5 kB / 0.4929 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009317/0.3737, allocations: 391.1 kB / 0.4933 GB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.3738, allocations: 43.98 kB / 0.4933 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006348/0.3802, allocations: 7.585 MB / 0.5007 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.3802, allocations: 4.094 kB / 0.5007 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1694/0.5496, allocations: 3.831 MB / 0.5044 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.5506, allocations: 496.6 kB / 0.5049 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.5509, allocations: 39 kB / 0.505 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009625/0.5519, allocations: 94.59 kB / 0.505 GB, free: 92.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.5521, allocations: 116 kB / 0.5052 GB, free: 91.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.65e-05/0.5522, allocations: 43.69 kB / 0.5052 GB, free: 91.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001983/0.5542, allocations: 1.37 MB / 0.5065 GB, free: 91.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5542, allocations: 0 / 0.5065 GB, free: 91.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001826/0.556, allocations: 0.5611 MB / 0.5071 GB, free: 91.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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,6,100.0%), (1,1,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.0004253/0.5565, allocations: 214.4 kB / 0.5073 GB, free: 91.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003388/0.5599, allocations: 2.621 MB / 0.5099 GB, free: 90.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.5599, allocations: 0 / 0.5099 GB, free: 90.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001625/0.5615, allocations: 1.58 MB / 0.5114 GB, free: 89.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.5645, allocations: 0.5316 MB / 0.5119 GB, free: 89.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006904/0.5714, allocations: 7.335 MB / 0.5191 GB, free: 84.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.5728, allocations: 2.255 MB / 0.5213 GB, free: 82.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001442/0.5743, allocations: 0.5295 MB / 0.5218 GB, free: 82.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000433/0.5747, allocations: 163.1 kB / 0.522 GB, free: 82.05 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5747, allocations: 0 / 0.522 GB, free: 82.05 MB / 378.7 MB Notification: Performance of Templates: time 0.04178/0.6165, allocations: 29.24 MB / 0.5505 GB, free: 53.22 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches