Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 107.4 kB / 16.92 MB, free: 6.141 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.001715/0.001716, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.31/1.31, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000979/0.000979, allocations: 42.22 kB / 300.6 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09185/0.09285, allocations: 49.46 MB / 350.1 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.2046/0.2975, allocations: 38.26 MB / 388.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0261/0.3237, allocations: 10.02 MB / 398.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01242/0.3361, allocations: 290.5 kB / 398.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02598/0.3621, allocations: 10.17 MB / 408.8 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01851/0.3807, allocations: 4.045 MB / 412.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.3908, allocations: 2.377 MB / 415.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02659/0.4174, allocations: 16.26 MB / 431.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06011/0.4776, allocations: 31.4 MB / 462.9 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01803/0.4957, allocations: 8.451 MB / 471.4 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01566/0.5114, allocations: 9.347 MB / 480.7 MB, free: 2.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007123/0.5185, allocations: 2.418 MB / 483.1 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01035/0.5289, allocations: 2.824 MB / 485.9 MB, free: 13.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008437/0.5374, allocations: 4.809 MB / 490.8 MB, free: 8.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02202/0.5594, allocations: 9.206 MB / 500 MB, free: 15.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4348/0.9942, allocations: 31.92 MB / 0.5194 GB, free: 65.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.9943, allocations: 4.188 kB / 0.5194 GB, free: 65.81 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9943, allocations: 0 / 0.5194 GB, free: 65.81 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001097/0.9954, allocations: 0.875 kB / 0.5194 GB, free: 65.81 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.07428/1.07, allocations: 18.73 MB / 0.5377 GB, free: 61.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/1.07, allocations: 8.75 kB / 0.5377 GB, free: 61.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0493/1.119, allocations: 8.253 MB / 0.5458 GB, free: 60.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0245/1.144, allocations: 9.92 MB / 0.5555 GB, free: 58.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001378/1.145, allocations: 1.068 MB / 0.5565 GB, free: 57.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007204/1.152, allocations: 1.401 MB / 0.5579 GB, free: 57.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05892/1.211, allocations: 22.74 MB / 0.5801 GB, free: 34.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009623/1.212, allocations: 19.81 kB / 0.5801 GB, free: 34.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006447/1.219, allocations: 0.5833 MB / 0.5807 GB, free: 33.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009096/1.22, allocations: 0.7716 MB / 0.5814 GB, free: 33.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04093/1.261, allocations: 21 MB / 0.6019 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1411/1.402, allocations: 72.91 MB / 0.6731 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03427/1.436, allocations: 42.4 MB / 0.7145 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.198/1.634, allocations: 5.202 MB / 0.7196 GB, free: 209.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02225/1.656, allocations: 12.73 MB / 0.7321 GB, free: 207 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/1.656, allocations: 95.47 kB / 0.7321 GB, free: 206.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 6.282e-06/1.656, allocations: 0 / 0.7321 GB, free: 206.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.04769/1.704, allocations: 26.27 MB / 0.7578 GB, free: 195.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/1.704, allocations: 132.1 kB / 0.7579 GB, free: 195.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007269/1.711, allocations: 5.762 MB / 0.7635 GB, free: 193.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007304/1.712, allocations: 105.1 kB / 0.7636 GB, free: 193.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002814/1.715, allocations: 6.152 MB / 0.7697 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001321/1.716, allocations: 1.734 MB / 0.7713 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001783/1.718, allocations: 1.46 MB / 0.7728 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.029e-05/1.718, allocations: 308.9 kB / 0.7731 GB, free: 186.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004135/1.722, allocations: 3.628 MB / 0.7766 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004999/1.727, allocations: 6.474 MB / 0.7829 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009822/1.737, allocations: 10.77 MB / 0.7935 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.504e-05/1.737, allocations: 24 kB / 0.7935 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01789/1.755, allocations: 12.08 MB / 0.8053 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.562e-05/1.755, allocations: 50.12 kB / 0.8053 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/1.755, allocations: 97.02 kB / 0.8054 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/1.759, allocations: 1.595 MB / 0.807 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005033/1.764, allocations: 1.673 MB / 0.8086 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/1.783, allocations: 19.63 MB / 0.8278 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00601/1.789, allocations: 427.4 kB / 0.8282 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/1.79, allocations: 368 kB / 0.8285 GB, free: 129.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008282/1.798, allocations: 5.187 MB / 0.8336 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/1.8, allocations: 0.5981 MB / 0.8342 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01526/1.815, allocations: 9.357 MB / 0.8433 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007546/1.823, allocations: 5.88 MB / 0.8491 GB, free: 108 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.89e-05/1.823, allocations: 20 kB / 0.8491 GB, free: 108 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.463e-05/1.823, allocations: 27.89 kB / 0.8491 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03585/1.859, allocations: 21.01 MB / 0.8696 GB, free: 86.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.095e-05/1.859, allocations: 8.781 kB / 0.8696 GB, free: 86.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004853/1.864, allocations: 0.862 MB / 0.8705 GB, free: 85.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006139/1.87, allocations: 1.653 MB / 0.8721 GB, free: 84.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009562/1.871, allocations: 127.9 kB / 0.8722 GB, free: 84.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02937/1.9, allocations: 23.22 MB / 0.8949 GB, free: 60.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/1.9, allocations: 15.94 kB / 0.8949 GB, free: 60 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02382/1.924, allocations: 13.7 MB / 0.9083 GB, free: 45.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003606/1.928, allocations: 1.356 MB / 0.9096 GB, free: 44.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001959/1.93, allocations: 104 kB / 0.9097 GB, free: 44.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004136/1.934, allocations: 290.3 kB / 0.91 GB, free: 44.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001204/1.935, allocations: 412.3 kB / 0.9104 GB, free: 43.77 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005721/1.936, allocations: 156 kB / 0.9105 GB, free: 43.62 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007162/1.943, allocations: 3.883 MB / 0.9143 GB, free: 39.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.71e-07/1.943, allocations: 7.938 kB / 0.9143 GB, free: 39.76 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01192/1.955, allocations: 2.336 MB / 0.9166 GB, free: 37.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001413/1.956, allocations: 315.2 kB / 0.9169 GB, free: 37.11 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2317/2.188, allocations: 15.86 MB / 0.9324 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.721e-05/2.188, allocations: 3.375 kB / 0.9324 GB, free: 201.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01151/2.2, allocations: 5.446 MB / 0.9377 GB, free: 200.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01012/2.21, allocations: 1.627 MB / 0.9393 GB, free: 200.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04266/2.252, allocations: 24.89 MB / 0.9636 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01066/2.263, allocations: 8.846 MB / 0.9722 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009546/2.273, allocations: 2.534 MB / 0.9747 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002367/2.275, allocations: 458.1 kB / 0.9752 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.81e-07/2.275, allocations: 0 / 0.9752 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1585/2.434, allocations: 101.9 MB / 1.075 GB, free: 88.33 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches