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_ResistiveBraking.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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000856/0.0008561, allocations: 178.3 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.263/1.263, allocations: 225.7 MB / 243.2 MB, free: 8.445 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.0008034/0.0008034, allocations: 95.58 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003479, allocations: 15.94 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2311, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007454/0.2386, allocations: 10.13 MB / 414.7 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005902/0.2446, allocations: 3.615 MB / 418.3 MB, free: 17.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.2456, allocations: 59.75 kB / 418.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001347/0.247, allocations: 0.7341 MB / 419.1 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.2486, allocations: 0.8547 MB / 420 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.2492, allocations: 383.6 kB / 420.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002751/0.2519, allocations: 4.419 MB / 424.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.2541, allocations: 2.385 MB / 427.2 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.2558, allocations: 1.256 MB / 428.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.2573, allocations: 1.665 MB / 430.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002744/0.2576, allocations: 184 kB / 430.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.2582, allocations: 287.8 kB / 430.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006189/0.2589, allocations: 0.8993 MB / 431.4 MB, free: 4.262 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.2604, allocations: 1.642 MB / 433.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004305/0.2647, allocations: 5.177 MB / 438.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.2647, allocations: 4 kB / 438.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.2647, allocations: 0 / 438.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001093/0.2648, allocations: 0 / 438.3 MB, free: 13.41 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006126/0.271, allocations: 3.225 MB / 441.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.271, allocations: 12.03 kB / 441.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008733/0.2719, allocations: 388.6 kB / 441.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/0.275, allocations: 1.989 MB / 443.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.2752, allocations: 214.1 kB / 444.1 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.2756, allocations: 283.9 kB / 444.4 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005848/0.2814, allocations: 3.841 MB / 448.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.601e-05/0.2815, allocations: 15.89 kB / 448.2 MB, free: 3.242 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002305/0.2818, allocations: 112 kB / 448.3 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.2819, allocations: 121.5 kB / 448.4 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004905/0.2868, allocations: 3.23 MB / 451.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.3034, allocations: 11.99 MB / 463.7 MB, free: 3.461 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.3062, allocations: 3.66 MB / 467.3 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.308, allocations: 1.233 MB / 468.6 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002235/0.3082, allocations: 118.4 kB / 468.7 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.3083, allocations: 51.88 kB / 468.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.236e-06/0.3083, allocations: 0 / 468.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01319/0.3215, allocations: 7.351 MB / 476.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.3216, allocations: 68.72 kB / 476.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002826/0.3244, allocations: 2.04 MB / 478.2 MB, free: 4.188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.952e-05/0.3245, allocations: 53.7 kB / 478.2 MB, free: 4.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009029/0.3254, allocations: 1.378 MB / 479.6 MB, free: 2.734 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003659/0.3258, allocations: 0.5122 MB / 480.1 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.664e-05/0.3259, allocations: 40 kB / 480.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3261, allocations: 377.9 kB / 480.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.3273, allocations: 0.8627 MB / 481.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.3289, allocations: 1.361 MB / 482.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002798/0.3317, allocations: 2.322 MB / 485.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3317, allocations: 4 kB / 485.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005127/0.3368, allocations: 3.258 MB / 488.3 MB, free: 9.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.3369, allocations: 12 kB / 488.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/0.3369, allocations: 20.44 kB / 488.4 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002115/0.339, allocations: 0.856 MB / 489.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.3401, allocations: 351.4 kB / 489.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/0.3555, allocations: 18.81 MB / 0.4965 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.3571, allocations: 95.92 kB / 0.4966 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/0.3572, allocations: 80.06 kB / 0.4966 GB, free: 3.789 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001545/0.3588, allocations: 0.946 MB / 0.4976 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.3591, allocations: 217.4 kB / 0.4978 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1633/0.5224, allocations: 2.621 MB / 0.5003 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.5224, allocations: 14.84 kB / 0.5003 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.968e-05/0.5225, allocations: 11.8 kB / 0.5003 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.591e-05/0.5225, allocations: 6.797 kB / 0.5004 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008977/0.5315, allocations: 5.912 MB / 0.5061 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.5315, allocations: 5.375 kB / 0.5061 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00071/0.5323, allocations: 195.9 kB / 0.5063 GB, free: 90.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.5338, allocations: 0.7332 MB / 0.507 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/0.5339, allocations: 35.64 kB / 0.5071 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009924/0.5438, allocations: 16.72 MB / 0.5234 GB, free: 75.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5439, allocations: 3.656 kB / 0.5234 GB, free: 75.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004493/0.5484, allocations: 3.796 MB / 0.5271 GB, free: 73.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008381/0.5492, allocations: 479.8 kB / 0.5276 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.5495, allocations: 35.48 kB / 0.5276 GB, free: 73.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009361/0.5504, allocations: 113.4 kB / 0.5277 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/0.5507, allocations: 137.7 kB / 0.5278 GB, free: 73.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/0.5508, allocations: 48.42 kB / 0.5279 GB, free: 73.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001691/0.5525, allocations: 1.384 MB / 0.5292 GB, free: 72.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5525, allocations: 0 / 0.5292 GB, free: 72.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001866/0.5544, allocations: 0.6601 MB / 0.5299 GB, free: 71.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.0003462/0.5548, allocations: 220.3 kB / 0.5301 GB, free: 71.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003708/0.5585, allocations: 3.438 MB / 0.5335 GB, free: 67.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.5585, allocations: 0 / 0.5335 GB, free: 67.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.5604, allocations: 2.201 MB / 0.5356 GB, free: 65.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/0.5639, allocations: 0.6552 MB / 0.5362 GB, free: 64.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006535/0.5704, allocations: 7.042 MB / 0.5431 GB, free: 57.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.5718, allocations: 2.29 MB / 0.5454 GB, free: 55.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.573, allocations: 494.8 kB / 0.5458 GB, free: 54.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.5733, allocations: 135.4 kB / 0.546 GB, free: 54.77 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5733, allocations: 0 / 0.546 GB, free: 54.77 MB / 378.7 MB Notification: Performance of Templates: time 0.04682/0.6202, allocations: 36.16 MB / 0.5813 GB, free: 18.92 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches