Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 198.7 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.629/1.629, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007222/0.0007221, allocations: 94.67 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002219/0.0002219, allocations: 8 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2385, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008186/0.2468, allocations: 10.14 MB / 422.2 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006123/0.2529, allocations: 3.809 MB / 426 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.2545, allocations: 63.69 kB / 426.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.2563, allocations: 0.7457 MB / 426.8 MB, free: 11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002043/0.2584, allocations: 0.8586 MB / 427.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007572/0.2592, allocations: 387.6 kB / 428.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.262, allocations: 4.411 MB / 432.5 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.264, allocations: 2.382 MB / 434.9 MB, free: 2.887 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00163/0.2656, allocations: 1.264 MB / 436.1 MB, free: 1.617 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00158/0.2672, allocations: 1.665 MB / 437.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.2675, allocations: 187.9 kB / 438 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007655/0.2683, allocations: 275.8 kB / 438.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009094/0.2692, allocations: 0.9109 MB / 439.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.2711, allocations: 1.642 MB / 440.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004668/0.2758, allocations: 5.177 MB / 446 MB, free: 7.727 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.2758, allocations: 0 / 446 MB, free: 7.727 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2758, allocations: 0 / 446 MB, free: 7.727 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001079/0.2759, allocations: 0 / 446 MB, free: 7.727 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.006133/0.282, allocations: 3.229 MB / 449.2 MB, free: 4.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.2821, allocations: 12.03 kB / 449.2 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.2831, allocations: 388.6 kB / 449.6 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00312/0.2863, allocations: 1.985 MB / 451.6 MB, free: 1.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.2864, allocations: 218.1 kB / 451.8 MB, free: 1.781 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003998/0.2868, allocations: 291.8 kB / 452.1 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006171/0.293, allocations: 3.834 MB / 455.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.28e-05/0.2931, allocations: 8 kB / 455.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002713/0.2934, allocations: 116 kB / 456 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.2935, allocations: 121.5 kB / 456.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006355/0.2999, allocations: 3.242 MB / 459.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01851/0.3184, allocations: 11.98 MB / 471.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00331/0.3218, allocations: 3.66 MB / 475 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.3237, allocations: 1.235 MB / 476.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002449/0.324, allocations: 124.2 kB / 476.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.3241, allocations: 47.88 kB / 476.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.377e-06/0.3241, allocations: 0 / 476.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01411/0.3382, allocations: 7.36 MB / 483.8 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.3383, allocations: 68.66 kB / 483.8 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.3413, allocations: 2.052 MB / 485.9 MB, free: 14.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.3415, allocations: 53.64 kB / 486 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009111/0.3424, allocations: 1.382 MB / 487.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.3428, allocations: 0.5083 MB / 487.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-05/0.3429, allocations: 36 kB / 487.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3431, allocations: 381.9 kB / 488.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.3443, allocations: 0.8666 MB / 489.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.3459, allocations: 1.361 MB / 490.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3488, allocations: 2.311 MB / 492.8 MB, free: 7.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.3488, allocations: 8 kB / 492.8 MB, free: 7.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005575/0.3544, allocations: 3.266 MB / 496.1 MB, free: 3.816 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.3545, allocations: 20.02 kB / 496.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.3545, allocations: 16 kB / 496.1 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/0.3568, allocations: 0.8405 MB / 496.9 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.358, allocations: 343.4 kB / 497.3 MB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2081/0.566, allocations: 18.82 MB / 0.504 GB, free: 85.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.5678, allocations: 102.6 kB / 0.5041 GB, free: 85.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.568, allocations: 76.06 kB / 0.5042 GB, free: 85.53 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.001645/0.5696, allocations: 0.9374 MB / 0.5051 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.57, allocations: 215.3 kB / 0.5053 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00392/0.5739, allocations: 2.625 MB / 0.5079 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.5739, allocations: 15.59 kB / 0.5079 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.5739, allocations: 9.719 kB / 0.5079 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.574, allocations: 7.875 kB / 0.5079 GB, free: 84.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008188/0.5822, allocations: 5.907 MB / 0.5137 GB, free: 82.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.5822, allocations: 3.844 kB / 0.5137 GB, free: 82.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006956/0.5829, allocations: 195.6 kB / 0.5138 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.5845, allocations: 0.7296 MB / 0.5146 GB, free: 81.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-05/0.5846, allocations: 34.88 kB / 0.5146 GB, free: 81.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00977/0.5944, allocations: 16.74 MB / 0.5309 GB, free: 67.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5944, allocations: 7.812 kB / 0.5309 GB, free: 67.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00458/0.599, allocations: 3.787 MB / 0.5346 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008516/0.5999, allocations: 485.3 kB / 0.5351 GB, free: 63.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.6001, allocations: 35.98 kB / 0.5351 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000933/0.601, allocations: 116.1 kB / 0.5352 GB, free: 63.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/0.6014, allocations: 137 kB / 0.5354 GB, free: 63.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.961e-05/0.6014, allocations: 47.98 kB / 0.5354 GB, free: 63.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001584/0.603, allocations: 1.388 MB / 0.5368 GB, free: 61.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.603, allocations: 5.406 kB / 0.5368 GB, free: 61.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001903/0.605, allocations: 0.6568 MB / 0.5374 GB, free: 61.03 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.0003403/0.6053, allocations: 225.3 kB / 0.5376 GB, free: 60.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003607/0.6089, allocations: 3.428 MB / 0.541 GB, free: 57.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6089, allocations: 3.609 kB / 0.541 GB, free: 57.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.6108, allocations: 2.208 MB / 0.5431 GB, free: 54.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/0.6144, allocations: 0.6486 MB / 0.5438 GB, free: 54.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007208/0.6216, allocations: 7.052 MB / 0.5507 GB, free: 47.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/0.6231, allocations: 2.284 MB / 0.5529 GB, free: 44.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001333/0.6244, allocations: 494.8 kB / 0.5534 GB, free: 44.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.6247, allocations: 135.4 kB / 0.5535 GB, free: 44.23 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6247, allocations: 0 / 0.5535 GB, free: 44.23 MB / 378.7 MB Notification: Performance of Templates: time 0.04813/0.6729, allocations: 36.23 MB / 0.5889 GB, free: 8.344 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches