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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 192.2 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008045/0.0008046, allocations: 95.53 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002273, allocations: 8 kB / 360.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.208, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008163/0.2162, allocations: 9.684 MB / 421.7 MB, free: 16.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005411/0.2217, allocations: 4.11 MB / 425.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001281/0.223, allocations: 63.69 kB / 425.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001607/0.2246, allocations: 0.7224 MB / 426.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.2265, allocations: 0.7732 MB / 427.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007679/0.2273, allocations: 399.6 kB / 427.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002577/0.2299, allocations: 3.274 MB / 431.1 MB, free: 6.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.232, allocations: 2.275 MB / 433.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001721/0.2337, allocations: 1.042 MB / 434.4 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.2352, allocations: 1.455 MB / 435.8 MB, free: 1.832 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.2354, allocations: 152 kB / 436 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005854/0.236, allocations: 267.7 kB / 436.3 MB, free: 1.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005998/0.2366, allocations: 0.802 MB / 437.1 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/0.2379, allocations: 1.396 MB / 438.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003831/0.2418, allocations: 4.562 MB / 443 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.2418, allocations: 4 kB / 443 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2418, allocations: 0 / 443 MB, free: 10.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.385e-05/0.2419, allocations: 0 / 443 MB, free: 10.62 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005315/0.2472, allocations: 2.861 MB / 445.9 MB, free: 7.699 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2473, allocations: 8.031 kB / 445.9 MB, free: 7.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008967/0.2482, allocations: 349 kB / 446.2 MB, free: 7.348 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.2509, allocations: 1.768 MB / 448 MB, free: 5.523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.251, allocations: 205.3 kB / 448.2 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.2514, allocations: 247.9 kB / 448.4 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005152/0.2565, allocations: 3.268 MB / 451.7 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-05/0.2566, allocations: 7.906 kB / 451.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002015/0.2568, allocations: 100 kB / 451.8 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.257, allocations: 128.9 kB / 451.9 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004349/0.2613, allocations: 2.736 MB / 454.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.2761, allocations: 10.53 MB / 465.2 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.2779, allocations: 1.347 MB / 466.6 MB, free: 2.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.2791, allocations: 0.7912 MB / 467.3 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000297/0.2794, allocations: 216.2 kB / 467.6 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.2795, allocations: 39.56 kB / 467.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 3.006e-06/0.2795, allocations: 0 / 467.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01407/0.2936, allocations: 6.944 MB / 474.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.2936, allocations: 68.41 kB / 474.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002339/0.296, allocations: 1.778 MB / 476.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.992e-05/0.2961, allocations: 41.7 kB / 476.4 MB, free: 8.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008182/0.2969, allocations: 1.271 MB / 477.7 MB, free: 7.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.2972, allocations: 429.8 kB / 478.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.2973, allocations: 36 kB / 478.1 MB, free: 6.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.2974, allocations: 369.8 kB / 478.5 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.2985, allocations: 0.773 MB / 479.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.2999, allocations: 1.284 MB / 480.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/0.3025, allocations: 2.206 MB / 482.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.3025, allocations: 8 kB / 482.8 MB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003703/0.3062, allocations: 2.467 MB / 485.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.3062, allocations: 12 kB / 485.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.3063, allocations: 16 kB / 485.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005833/0.3069, allocations: 235.2 kB / 485.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.3083, allocations: 427.5 kB / 485.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002284/0.3106, allocations: 3.005 MB / 488.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.312, allocations: 131.8 kB / 489.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.3121, allocations: 68 kB / 489.1 MB, free: 10.89 MB / 362.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.001363/0.3135, allocations: 0.8135 MB / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.3138, allocations: 193.5 kB / 490.1 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003276/0.3171, allocations: 2.035 MB / 492.2 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3171, allocations: 12 kB / 492.2 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3171, allocations: 4 kB / 492.2 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.3172, allocations: 7.969 kB / 492.2 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007652/0.3248, allocations: 4.763 MB / 496.9 MB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3248, allocations: 4 kB / 496.9 MB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.3259, allocations: 267.6 kB / 497.2 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005389/0.3265, allocations: 211.5 kB / 497.4 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.291e-05/0.3266, allocations: 24 kB / 497.4 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.329, allocations: 2.974 MB / 0.4887 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.329, allocations: 7.938 kB / 0.4887 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004471/0.3335, allocations: 3.126 MB / 0.4917 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009797/0.3345, allocations: 442.6 kB / 0.4922 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003954/0.3349, allocations: 27.94 kB / 0.4922 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.336, allocations: 95.81 kB / 0.4923 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.3362, allocations: 76.89 kB / 0.4924 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.822e-05/0.3363, allocations: 44.05 kB / 0.4924 GB, free: 11.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002568/0.3389, allocations: 1.204 MB / 0.4936 GB, free: 10.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3389, allocations: 0 / 0.4936 GB, free: 10.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002192/0.3411, allocations: 488 kB / 0.494 GB, free: 9.633 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.0004426/0.3416, allocations: 206.8 kB / 0.4942 GB, free: 9.418 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003907/0.3455, allocations: 2.329 MB / 0.4965 GB, free: 7.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3455, allocations: 0 / 0.4965 GB, free: 7.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/0.3475, allocations: 1.344 MB / 0.4978 GB, free: 5.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/0.3509, allocations: 469.7 kB / 0.4983 GB, free: 5.145 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1784/0.5293, allocations: 6.083 MB / 0.5042 GB, free: 89.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001882/0.5312, allocations: 2.011 MB / 0.5062 GB, free: 89.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001536/0.5328, allocations: 0.4963 MB / 0.5067 GB, free: 89.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.5332, allocations: 136.2 kB / 0.5068 GB, free: 89.02 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5332, allocations: 0 / 0.5068 GB, free: 89.02 MB / 378.7 MB Notification: Performance of Templates: time 0.03828/0.5715, allocations: 24.56 MB / 0.5308 GB, free: 71.94 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches