Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 108.7 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 192 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009554/0.0009555, allocations: 43.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.324, allocations: 49.45 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.01267/0.3367, allocations: 8.901 MB / 409.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00735/0.3441, allocations: 2.864 MB / 412.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/0.3461, allocations: 39.88 kB / 412.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002467/0.3487, allocations: 0.6407 MB / 413.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.352, allocations: 0.7613 MB / 413.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.3533, allocations: 319.5 kB / 414.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003779/0.3571, allocations: 2.366 MB / 416.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003138/0.3602, allocations: 1.758 MB / 418.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.3622, allocations: 1.063 MB / 419.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.3651, allocations: 1.347 MB / 420.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008531/0.3659, allocations: 280 kB / 421.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.3672, allocations: 363.8 kB / 421.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.3685, allocations: 0.8025 MB / 422.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002029/0.3705, allocations: 1.26 MB / 423.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.3744, allocations: 3.672 MB / 427.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3744, allocations: 4 kB / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3745, allocations: 0 / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001349/0.3746, allocations: 3.984 kB / 427.2 MB, free: 14.31 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006357/0.381, allocations: 2.583 MB / 429.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.381, allocations: 11.89 kB / 429.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009079/0.3819, allocations: 262.1 kB / 430 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.3845, allocations: 1.381 MB / 431.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.3846, allocations: 136 kB / 431.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003811/0.385, allocations: 192 kB / 431.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004246/0.3893, allocations: 2.41 MB / 434.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.465e-05/0.3893, allocations: 4 kB / 434.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.3895, allocations: 75.98 kB / 434.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.725e-05/0.3896, allocations: 83.5 kB / 434.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.393, allocations: 2.024 MB / 436.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/0.4042, allocations: 7.366 MB / 443.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.4061, allocations: 1.273 MB / 444.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.4079, allocations: 0.9197 MB / 445.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000238/0.4081, allocations: 118.1 kB / 446 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.4082, allocations: 43.56 kB / 446 MB, free: 10.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 3.516e-06/0.4082, allocations: 4 kB / 446 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.00927/0.4175, allocations: 4.892 MB / 450.9 MB, free: 5.996 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.4175, allocations: 64.41 kB / 451 MB, free: 5.918 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.4197, allocations: 1.376 MB / 452.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-05/0.4198, allocations: 45.7 kB / 452.4 MB, free: 4.484 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006024/0.4204, allocations: 0.8969 MB / 453.3 MB, free: 3.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.4207, allocations: 354.9 kB / 453.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000342/0.4211, allocations: 214.8 kB / 453.9 MB, free: 3.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4212, allocations: 353.9 kB / 454.2 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009888/0.4222, allocations: 0.6311 MB / 454.8 MB, free: 2.023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.4234, allocations: 0.9259 MB / 455.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002226/0.4256, allocations: 1.649 MB / 457.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.4256, allocations: 4 kB / 457.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004078/0.4297, allocations: 2.382 MB / 459.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.4298, allocations: 12.25 kB / 459.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.4298, allocations: 12 kB / 459.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.4316, allocations: 0.712 MB / 460.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008722/0.4325, allocations: 231.7 kB / 460.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.4435, allocations: 8.734 MB / 469.5 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.4447, allocations: 79.84 kB / 469.6 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.4448, allocations: 51.98 kB / 469.6 MB, free: 2.688 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * Array equations: 0 * 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,1,100.0%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001137/0.446, allocations: 0.6223 MB / 470.2 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/0.4463, allocations: 142.2 kB / 470.4 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/0.4497, allocations: 1.901 MB / 472.3 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4497, allocations: 12 kB / 472.3 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.4497, allocations: 128 / 472.3 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.4497, allocations: 11.94 kB / 472.3 MB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006496/0.4562, allocations: 4 MB / 476.3 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4563, allocations: 0 / 476.3 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.457, allocations: 179.8 kB / 476.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.4583, allocations: 469.2 kB / 476.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.515e-05/0.4584, allocations: 31.92 kB / 477 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00639/0.4648, allocations: 6.691 MB / 483.7 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4648, allocations: 0 / 483.7 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.4692, allocations: 2.783 MB / 486.4 MB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000921/0.4702, allocations: 355.3 kB / 486.8 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003829/0.4706, allocations: 20 kB / 486.8 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009754/0.4716, allocations: 75.91 kB / 486.9 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.4718, allocations: 80.83 kB / 487 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.379e-05/0.4719, allocations: 31.98 kB / 487 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001741/0.4737, allocations: 0.9504 MB / 487.9 MB, free: 15.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4737, allocations: 0 / 487.9 MB, free: 15.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001586/0.4753, allocations: 435.9 kB / 488.4 MB, free: 15.31 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (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) * 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 (84): * Single equations (assignments): 80 * Array equations: 0 * 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,1,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.0004487/0.4757, allocations: 187 kB / 488.5 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003409/0.4791, allocations: 2.004 MB / 490.6 MB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4792, allocations: 0.5 kB / 490.6 MB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.4812, allocations: 1.355 MB / 491.9 MB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.4831, allocations: 372.3 kB / 492.3 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00774/0.4909, allocations: 4.003 MB / 496.3 MB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/0.4927, allocations: 1.685 MB / 498 MB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008883/0.4936, allocations: 316 kB / 498.3 MB, free: 5.223 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.4939, allocations: 103.4 kB / 498.4 MB, free: 5.121 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4939, allocations: 3.938 kB / 498.4 MB, free: 5.117 MB / 414.1 MB Notification: Performance of Templates: time 0.04577/0.5397, allocations: 24.4 MB / 0.5105 GB, free: 12.94 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches