Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001359/0.001359, allocations: 178.6 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008267/0.0008266, allocations: 94.3 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002937, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.309, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.009999/0.319, allocations: 9.646 MB / 386.2 MB, free: 38.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007877/0.3269, allocations: 3.896 MB / 390.1 MB, free: 34.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00274/0.3297, allocations: 50.72 kB / 390.2 MB, free: 34.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002768/0.3325, allocations: 0.7112 MB / 390.9 MB, free: 34.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003835/0.3364, allocations: 0.781 MB / 391.7 MB, free: 33.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.3377, allocations: 395.6 kB / 392.1 MB, free: 32.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003653/0.3413, allocations: 3.289 MB / 395.4 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/0.3437, allocations: 2.243 MB / 397.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.3455, allocations: 1.046 MB / 398.7 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.3472, allocations: 1.463 MB / 400.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003302/0.3476, allocations: 156 kB / 400.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007609/0.3484, allocations: 259.8 kB / 400.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000642/0.349, allocations: 0.8058 MB / 401.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.3504, allocations: 1.4 MB / 402.7 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003891/0.3543, allocations: 4.554 MB / 407.3 MB, free: 17.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.981e-05/0.3544, allocations: 0 / 407.3 MB, free: 17.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3544, allocations: 0 / 407.3 MB, free: 17.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001498/0.3545, allocations: 0 / 407.3 MB, free: 17.57 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005797/0.3603, allocations: 2.853 MB / 410.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3604, allocations: 8.031 kB / 410.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008468/0.3613, allocations: 341.1 kB / 410.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.3638, allocations: 1.69 MB / 412.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.3639, allocations: 201.3 kB / 412.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003122/0.3643, allocations: 251.9 kB / 412.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004717/0.369, allocations: 3.26 MB / 415.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.668e-05/0.3691, allocations: 7.938 kB / 415.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.3693, allocations: 104 kB / 416 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3694, allocations: 124.9 kB / 416.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003959/0.3734, allocations: 2.732 MB / 418.8 MB, free: 5.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.3886, allocations: 10.56 MB / 429.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.3906, allocations: 1.345 MB / 430.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3919, allocations: 0.7852 MB / 431.5 MB, free: 8.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/0.3922, allocations: 200.3 kB / 431.7 MB, free: 8.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3923, allocations: 55.48 kB / 431.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.046e-06/0.3923, allocations: 0 / 431.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01704/0.4093, allocations: 7.055 MB / 438.8 MB, free: 1.215 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.4094, allocations: 64.41 kB / 438.9 MB, free: 1.137 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.4122, allocations: 1.778 MB / 440.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.4124, allocations: 45.7 kB / 440.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.4134, allocations: 1.279 MB / 442 MB, free: 14.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.4138, allocations: 429.9 kB / 442.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/0.4139, allocations: 32 kB / 442.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4141, allocations: 373.8 kB / 442.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.4155, allocations: 0.7691 MB / 443.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.4171, allocations: 1.297 MB / 444.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003134/0.4203, allocations: 2.203 MB / 447.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.4203, allocations: 8 kB / 447.1 MB, free: 8.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00497/0.4253, allocations: 2.466 MB / 449.5 MB, free: 5.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.4254, allocations: 15.94 kB / 449.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.215e-05/0.4255, allocations: 16 kB / 449.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.4265, allocations: 243.6 kB / 449.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/0.4288, allocations: 419.3 kB / 450.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002988/0.4318, allocations: 3.005 MB / 453.2 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.4339, allocations: 127.7 kB / 453.4 MB, free: 1.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001932/0.4342, allocations: 75.98 kB / 453.4 MB, free: 1.789 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.002203/0.4364, allocations: 0.8174 MB / 454.2 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/0.4369, allocations: 185.7 kB / 454.4 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.4404, allocations: 2.035 MB / 456.5 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4405, allocations: 12 kB / 456.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4405, allocations: 4 kB / 456.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.4405, allocations: 3.984 kB / 456.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008612/0.4491, allocations: 4.748 MB / 461.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.4492, allocations: 4 kB / 461.2 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4502, allocations: 259.6 kB / 461.5 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006115/0.4509, allocations: 203.5 kB / 461.7 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/0.451, allocations: 27.94 kB / 461.7 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002679/0.4537, allocations: 2.982 MB / 464.7 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4537, allocations: 3.938 kB / 464.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004823/0.4585, allocations: 3.129 MB / 467.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.4598, allocations: 438.5 kB / 468.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.4601, allocations: 24 kB / 468.3 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000939/0.4611, allocations: 91.88 kB / 468.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.4613, allocations: 80.95 kB / 468.4 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-05/0.4614, allocations: 35.98 kB / 468.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002137/0.4635, allocations: 1.204 MB / 469.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4635, allocations: 0 / 469.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001773/0.4653, allocations: 484 kB / 470.2 MB, free: 0.5742 MB / 346.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 (120): * Single equations (assignments): 116 * 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.0004918/0.4658, allocations: 206.9 kB / 470.4 MB, free: 372 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004011/0.4698, allocations: 2.331 MB / 472.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4699, allocations: 0 / 472.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.4718, allocations: 1.343 MB / 474 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/0.4748, allocations: 465.8 kB / 474.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.4854, allocations: 6.092 MB / 480.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/0.4877, allocations: 2.01 MB / 482.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002034/0.4897, allocations: 0.4921 MB / 483.1 MB, free: 3.395 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004306/0.4902, allocations: 143.4 kB / 483.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of SimCode: time 8.71e-07/0.4902, allocations: 0 / 483.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of Templates: time 0.277/0.7672, allocations: 24.45 MB / 0.4958 GB, free: 100.5 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches