Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 104.4 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007922/0.0007923, allocations: 43.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2328, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.007725/0.2406, allocations: 9.624 MB / 409.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004609/0.2452, allocations: 2.999 MB / 412.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.2465, allocations: 47.81 kB / 412.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.248, allocations: 0.5438 MB / 412.7 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002014/0.25, allocations: 0.6721 MB / 413.4 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007927/0.2508, allocations: 323.7 kB / 413.7 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.253, allocations: 2.768 MB / 416.4 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00128/0.2543, allocations: 1.434 MB / 417.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000928/0.2552, allocations: 0.9572 MB / 418.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.2563, allocations: 1.269 MB / 420.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002329/0.2566, allocations: 176 kB / 420.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004906/0.2571, allocations: 279.8 kB / 420.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004367/0.2575, allocations: 0.6659 MB / 421.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007762/0.2583, allocations: 1.158 MB / 422.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.2602, allocations: 3.516 MB / 425.9 MB, free: 6.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.2603, allocations: 0 / 425.9 MB, free: 6.828 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2603, allocations: 0 / 425.9 MB, free: 6.828 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.708e-05/0.2603, allocations: 0 / 425.9 MB, free: 6.828 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.004345/0.2647, allocations: 2.588 MB / 428.5 MB, free: 4.184 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.2647, allocations: 8.031 kB / 428.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005665/0.2653, allocations: 266.1 kB / 428.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.2671, allocations: 1.314 MB / 430.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.761e-05/0.2672, allocations: 148.2 kB / 430.2 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002257/0.2675, allocations: 192 kB / 430.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003079/0.2706, allocations: 2.419 MB / 432.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.38e-05/0.2706, allocations: 4 kB / 432.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001661/0.2708, allocations: 76 kB / 432.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.424e-05/0.2709, allocations: 91.67 kB / 433 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003238/0.2741, allocations: 1.962 MB / 434.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.2867, allocations: 7.847 MB / 442.8 MB, free: 5.531 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.2883, allocations: 1.23 MB / 444 MB, free: 4.258 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.29, allocations: 0.9333 MB / 445 MB, free: 3.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002321/0.2902, allocations: 118.1 kB / 445.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.844e-05/0.2903, allocations: 51.5 kB / 445.1 MB, free: 3.133 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 6.703e-06/0.2903, allocations: 7.984 kB / 445.1 MB, free: 3.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01271/0.303, allocations: 5.859 MB / 451 MB, free: 13.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3031, allocations: 64.41 kB / 451 MB, free: 13.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/0.3049, allocations: 1.302 MB / 452.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.685e-05/0.3051, allocations: 45.7 kB / 452.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005803/0.3056, allocations: 0.9198 MB / 453.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.306, allocations: 390.4 kB / 453.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.3064, allocations: 251.4 kB / 453.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3065, allocations: 357.9 kB / 454.3 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009604/0.3075, allocations: 0.6364 MB / 454.9 MB, free: 9.125 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.3087, allocations: 1.008 MB / 455.9 MB, free: 7.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002357/0.3111, allocations: 1.727 MB / 457.7 MB, free: 6.086 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.3111, allocations: 4 kB / 457.7 MB, free: 6.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004189/0.3153, allocations: 2.249 MB / 459.9 MB, free: 3.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3154, allocations: 12.25 kB / 459.9 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.3154, allocations: 16 kB / 459.9 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3166, allocations: 495.9 kB / 460.4 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.3176, allocations: 303.5 kB / 460.7 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/0.3244, allocations: 6.525 MB / 467.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.3257, allocations: 83.92 kB / 467.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3258, allocations: 52 kB / 467.4 MB, free: 11.92 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.3269, allocations: 0.6067 MB / 468 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.3272, allocations: 142.2 kB / 468.1 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003303/0.3305, allocations: 1.964 MB / 470.1 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.3305, allocations: 12 kB / 470.1 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3305, allocations: 8 kB / 470.1 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3306, allocations: 3.984 kB / 470.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006922/0.3375, allocations: 4.144 MB / 474.3 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3375, allocations: 4.062 kB / 474.3 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007881/0.3383, allocations: 179.8 kB / 474.4 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.3398, allocations: 0.5416 MB / 475 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.003e-05/0.3399, allocations: 31.98 kB / 475 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007662/0.3475, allocations: 8.045 MB / 483.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3476, allocations: 8.062 kB / 483.1 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0368/0.3844, allocations: 24.46 MB / 0.4956 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00069/0.3851, allocations: 351.2 kB / 0.496 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.3853, allocations: 32.05 kB / 0.496 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007631/0.3861, allocations: 67.92 kB / 0.4961 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.3863, allocations: 92.97 kB / 0.4961 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.257e-05/0.3864, allocations: 35.98 kB / 0.4962 GB, free: 1.715 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.3877, allocations: 0.8839 MB / 0.497 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3877, allocations: 0.5625 kB / 0.497 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002156/0.3898, allocations: 0.6211 MB / 0.4976 GB, free: 212 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (2,8,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.0004104/0.3903, allocations: 179 kB / 0.4978 GB, free: 24 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1782/0.5684, allocations: 2.215 MB / 0.5 GB, free: 95.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.5685, allocations: 5.281 kB / 0.5 GB, free: 95.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/0.5708, allocations: 1.508 MB / 0.5015 GB, free: 95.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.573, allocations: 396.5 kB / 0.5018 GB, free: 95.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009067/0.5821, allocations: 6.459 MB / 0.5081 GB, free: 91.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.5834, allocations: 1.693 MB / 0.5098 GB, free: 91.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001185/0.5846, allocations: 342.5 kB / 0.5101 GB, free: 91.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002978/0.5849, allocations: 98.75 kB / 0.5102 GB, free: 91.05 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5849, allocations: 0 / 0.5102 GB, free: 91.05 MB / 378.7 MB Notification: Performance of Templates: time 0.04118/0.6261, allocations: 28.93 MB / 0.5385 GB, free: 64.95 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches