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.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 183.2 kB / 16.71 MB, free: 4.969 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.327/1.327, allocations: 225.7 MB / 243.2 MB, free: 8.52 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.0008491/0.000849, allocations: 94.83 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002935, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2124, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.006591/0.219, allocations: 8.556 MB / 413.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004734/0.2238, allocations: 4.012 MB / 417.1 MB, free: 18.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008339/0.2246, allocations: 43.81 kB / 417.2 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.2259, allocations: 0.5671 MB / 417.8 MB, free: 18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.2274, allocations: 0.75 MB / 418.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007191/0.2281, allocations: 415.4 kB / 418.9 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001821/0.2299, allocations: 3.021 MB / 421.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.2312, allocations: 1.533 MB / 423.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008931/0.2321, allocations: 0.9373 MB / 424.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.2333, allocations: 1.354 MB / 425.8 MB, free: 9.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.2336, allocations: 136 kB / 425.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000714/0.2343, allocations: 407.5 kB / 426.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000502/0.2348, allocations: 0.7824 MB / 427.1 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008787/0.2357, allocations: 1.287 MB / 428.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.2381, allocations: 4.029 MB / 432.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2381, allocations: 4 kB / 432.4 MB, free: 3.246 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2381, allocations: 0 / 432.4 MB, free: 3.246 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.347e-05/0.2382, allocations: 0 / 432.4 MB, free: 3.246 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.003832/0.2421, allocations: 2.7 MB / 435.1 MB, free: 492 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2421, allocations: 8.031 kB / 435.1 MB, free: 484 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006424/0.2428, allocations: 329.2 kB / 435.4 MB, free: 152 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/0.2454, allocations: 1.654 MB / 437.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.2455, allocations: 156 kB / 437.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002991/0.2458, allocations: 203.9 kB / 437.4 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.2502, allocations: 2.69 MB / 440.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.094e-05/0.2503, allocations: 11.88 kB / 440.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/0.2505, allocations: 83.98 kB / 440.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.2506, allocations: 91.94 kB / 440.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003831/0.2544, allocations: 2.287 MB / 442.6 MB, free: 8.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.2664, allocations: 8.29 MB / 450.9 MB, free: 360 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.2691, allocations: 1.632 MB / 452.5 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/0.271, allocations: 1.097 MB / 453.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002293/0.2712, allocations: 130 kB / 453.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.2713, allocations: 47.5 kB / 453.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 2.946e-06/0.2713, allocations: 0 / 453.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01319/0.2845, allocations: 6.508 MB / 460.3 MB, free: 6.703 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.2845, allocations: 68.66 kB / 460.4 MB, free: 6.625 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/0.2873, allocations: 2.145 MB / 462.5 MB, free: 4.434 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/0.2874, allocations: 45.7 kB / 462.5 MB, free: 4.383 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007665/0.2882, allocations: 1.108 MB / 463.7 MB, free: 3.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.2885, allocations: 461.3 kB / 464.1 MB, free: 2.805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.2886, allocations: 24 kB / 464.1 MB, free: 2.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2887, allocations: 357.9 kB / 464.5 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.29, allocations: 0.7691 MB / 465.2 MB, free: 1.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.2914, allocations: 1.021 MB / 466.3 MB, free: 0.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.2941, allocations: 1.865 MB / 468.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.2941, allocations: 4 kB / 468.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004834/0.2989, allocations: 2.78 MB / 470.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.299, allocations: 8 kB / 470.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.299, allocations: 8 kB / 470.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.3009, allocations: 0.7853 MB / 471.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.302, allocations: 271.6 kB / 472 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.313, allocations: 8.744 MB / 480.7 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.3144, allocations: 103.9 kB / 480.8 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.3145, allocations: 51.98 kB / 480.9 MB, free: 1.547 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001267/0.3158, allocations: 0.7355 MB / 481.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003104/0.3161, allocations: 205.5 kB / 481.8 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/0.3204, allocations: 2.516 MB / 484.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/0.3205, allocations: 16 kB / 484.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3205, allocations: 4 kB / 484.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3205, allocations: 7.984 kB / 484.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007983/0.3285, allocations: 4.963 MB / 489.3 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3285, allocations: 0 / 489.3 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009893/0.3295, allocations: 231.8 kB / 489.5 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.3312, allocations: 0.6394 MB / 490.2 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.242e-05/0.3313, allocations: 35.98 kB / 490.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008405/0.3397, allocations: 7.925 MB / 498.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3398, allocations: 7.969 kB / 498.2 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006144/0.3459, allocations: 3.565 MB / 0.49 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00098/0.3469, allocations: 450.3 kB / 0.4904 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.3471, allocations: 31.98 kB / 0.4904 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008913/0.348, allocations: 91.91 kB / 0.4905 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.3483, allocations: 104.8 kB / 0.4906 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.091e-05/0.3484, allocations: 39.97 kB / 0.4906 GB, free: 11.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002026/0.3505, allocations: 1.504 MB / 0.4921 GB, free: 9.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3505, allocations: 4 kB / 0.4921 GB, free: 9.848 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001598/0.3521, allocations: 0.5234 MB / 0.4926 GB, free: 9.324 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001072/0.3532, allocations: 0.4943 MB / 0.4931 GB, free: 8.938 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004067/0.3572, allocations: 2.408 MB / 0.4955 GB, free: 6.504 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3573, allocations: 0 / 0.4955 GB, free: 6.504 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002456/0.3597, allocations: 1.601 MB / 0.497 GB, free: 4.844 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.3619, allocations: 434.6 kB / 0.4974 GB, free: 4.414 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1852/0.547, allocations: 6.256 MB / 0.5035 GB, free: 93.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/0.5487, allocations: 1.948 MB / 0.5055 GB, free: 93.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001348/0.5501, allocations: 402.6 kB / 0.5058 GB, free: 93.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.5504, allocations: 126.3 kB / 0.506 GB, free: 93.09 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5504, allocations: 0 / 0.506 GB, free: 93.09 MB / 378.7 MB Notification: Performance of Templates: time 0.04081/0.5912, allocations: 28.41 MB / 0.5337 GB, free: 72.01 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches