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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 180 kB / 16.71 MB, free: 5.074 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.289/1.289, allocations: 225.7 MB / 243.2 MB, free: 10.17 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.0007697/0.0007696, allocations: 93.69 kB / 294.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002433, allocations: 8 kB / 354.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2337, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007303/0.241, allocations: 9.658 MB / 414.3 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005186/0.2463, allocations: 3.836 MB / 418.1 MB, free: 17.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.2475, allocations: 59.69 kB / 418.1 MB, free: 17.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.249, allocations: 0.7069 MB / 418.9 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001795/0.2508, allocations: 0.7693 MB / 419.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007018/0.2516, allocations: 415.5 kB / 420 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.2537, allocations: 3.255 MB / 423.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001848/0.2556, allocations: 2.279 MB / 425.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.2566, allocations: 1.05 MB / 426.6 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.2578, allocations: 1.451 MB / 428.1 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002205/0.2581, allocations: 152 kB / 428.2 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005144/0.2586, allocations: 259.8 kB / 428.5 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005201/0.2591, allocations: 0.8019 MB / 429.3 MB, free: 6.461 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008848/0.26, allocations: 1.393 MB / 430.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002483/0.2625, allocations: 4.558 MB / 435.2 MB, free: 492 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2625, allocations: 0 / 435.2 MB, free: 492 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2625, allocations: 0 / 435.2 MB, free: 492 kB / 298.7 MB Notification: Performance of Transformations before backend: time 5.173e-05/0.2626, allocations: 0 / 435.2 MB, free: 492 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004631/0.2672, allocations: 2.866 MB / 438.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2673, allocations: 11.97 kB / 438.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006581/0.2679, allocations: 333.1 kB / 438.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.2705, allocations: 1.776 MB / 440.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.2707, allocations: 197.3 kB / 440.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003218/0.271, allocations: 259.9 kB / 440.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004922/0.2759, allocations: 3.268 MB / 443.9 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.037e-05/0.276, allocations: 7.906 kB / 443.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001962/0.2762, allocations: 104 kB / 444 MB, free: 7.473 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.2763, allocations: 120.9 kB / 444.1 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004904/0.2812, allocations: 2.736 MB / 446.9 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/0.2964, allocations: 10.52 MB / 457.4 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.2982, allocations: 1.346 MB / 458.7 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.2993, allocations: 0.7968 MB / 459.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002592/0.2996, allocations: 208.2 kB / 459.7 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.2996, allocations: 43.56 kB / 459.8 MB, free: 7.215 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 2.284e-06/0.2997, allocations: 0 / 459.8 MB, free: 7.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01327/0.3129, allocations: 6.935 MB / 466.7 MB, free: 172 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.313, allocations: 64.41 kB / 466.8 MB, free: 92 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.3152, allocations: 1.782 MB / 468.6 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.3152, allocations: 45.7 kB / 468.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007973/0.316, allocations: 1.275 MB / 469.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/0.3163, allocations: 425.8 kB / 470.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-05/0.3164, allocations: 36 kB / 470.3 MB, free: 12.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3166, allocations: 369.8 kB / 470.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.3176, allocations: 0.773 MB / 471.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.319, allocations: 1.284 MB / 472.7 MB, free: 9.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002672/0.3216, allocations: 2.202 MB / 474.9 MB, free: 7.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.3217, allocations: 7.938 kB / 475 MB, free: 7.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003617/0.3253, allocations: 2.47 MB / 477.4 MB, free: 4.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3253, allocations: 12 kB / 477.4 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3254, allocations: 16 kB / 477.5 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005636/0.3259, allocations: 239.2 kB / 477.7 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.3273, allocations: 423.5 kB / 478.1 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/0.3298, allocations: 3.002 MB / 481.1 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.331, allocations: 135.7 kB / 481.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.3311, allocations: 71.98 kB / 481.3 MB, free: 0.7578 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001333/0.3325, allocations: 0.8212 MB / 482.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.3328, allocations: 185.7 kB / 482.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/0.3358, allocations: 2.046 MB / 484.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.3358, allocations: 12 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3358, allocations: 0 / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.3358, allocations: 11.97 kB / 484.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006656/0.3425, allocations: 4.751 MB / 489.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3425, allocations: 4 kB / 489.1 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009938/0.3435, allocations: 267.6 kB / 489.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004986/0.344, allocations: 203.5 kB / 489.6 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.988e-05/0.3441, allocations: 28 kB / 489.6 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.3463, allocations: 2.97 MB / 492.6 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3463, allocations: 3.984 kB / 492.6 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.3504, allocations: 3.129 MB / 495.7 MB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007072/0.3512, allocations: 434.6 kB / 496.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.3514, allocations: 31.92 kB / 496.2 MB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008318/0.3522, allocations: 95.88 kB / 496.3 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.3524, allocations: 80.83 kB / 496.4 MB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/0.3525, allocations: 40.05 kB / 496.4 MB, free: 1.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00168/0.3542, allocations: 1.204 MB / 497.6 MB, free: 15.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3542, allocations: 0 / 497.6 MB, free: 15.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001429/0.3556, allocations: 488 kB / 498.1 MB, free: 15.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,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.0003459/0.356, allocations: 195 kB / 498.3 MB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003287/0.3593, allocations: 2.329 MB / 0.4889 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3593, allocations: 0 / 0.4889 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.361, allocations: 1.348 MB / 0.4902 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/0.3634, allocations: 473.6 kB / 0.4906 GB, free: 11.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007498/0.371, allocations: 6.107 MB / 0.4966 GB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.3725, allocations: 2.006 MB / 0.4986 GB, free: 2.809 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00146/0.374, allocations: 0.496 MB / 0.499 GB, free: 2.309 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.3744, allocations: 135.4 kB / 0.4992 GB, free: 2.176 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3744, allocations: 0 / 0.4992 GB, free: 2.176 MB / 378.7 MB Notification: Performance of Templates: time 0.191/0.5654, allocations: 24.49 MB / 0.5231 GB, free: 80.86 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches