Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 207.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 55.92 kB / 377.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2634, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.04095/0.3043, allocations: 33.4 MB / 464.5 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.3281, allocations: 10.04 MB / 474.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008024/0.3362, allocations: 354.1 kB / 474.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02558/0.3618, allocations: 9.593 MB / 484.5 MB, free: 1.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01597/0.3777, allocations: 4.156 MB / 488.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008338/0.3861, allocations: 2.431 MB / 491.1 MB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02396/0.41, allocations: 16.64 MB / 0.4958 GB, free: 9.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03923/0.4493, allocations: 20.6 MB / 0.5159 GB, free: 4.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01476/0.464, allocations: 8.728 MB / 0.5245 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01661/0.4806, allocations: 9.601 MB / 0.5338 GB, free: 2.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006351/0.487, allocations: 2.41 MB / 0.5362 GB, free: 164 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2336/0.7206, allocations: 2.826 MB / 0.539 GB, free: 34.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00579/0.7264, allocations: 4.817 MB / 0.5437 GB, free: 34.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01243/0.7388, allocations: 7.175 MB / 0.5507 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02912/0.7679, allocations: 32.37 MB / 0.5823 GB, free: 22.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.7679, allocations: 0.8125 kB / 0.5823 GB, free: 22.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.7679, allocations: 0 / 0.5823 GB, free: 22.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008508/0.7688, allocations: 0.8125 kB / 0.5823 GB, free: 22.8 MB / 446.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.05539/0.8242, allocations: 18.98 MB / 0.6008 GB, free: 10.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.8242, allocations: 9 kB / 0.6008 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008075/0.8323, allocations: 2.29 MB / 0.6031 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04591/0.8782, allocations: 8.287 MB / 0.6112 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0255/0.9037, allocations: 10.35 MB / 0.6213 GB, free: 8.531 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001368/0.9051, allocations: 1.065 MB / 0.6223 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006071/0.9112, allocations: 1.392 MB / 0.6237 GB, free: 6.098 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06454/0.9757, allocations: 23.1 MB / 0.6462 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000588/0.9763, allocations: 19.84 kB / 0.6462 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005093/0.9814, allocations: 0.5794 MB / 0.6468 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009645/0.9823, allocations: 0.7793 MB / 0.6476 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04855/1.031, allocations: 20.98 MB / 0.6681 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1341/1.165, allocations: 65.13 MB / 0.7317 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03154/1.197, allocations: 13.86 MB / 0.7452 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008469/1.205, allocations: 4.731 MB / 0.7498 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2749/1.48, allocations: 11.48 MB / 0.761 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/1.48, allocations: 91.28 kB / 0.7611 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=498): time 8.295e-06/1.48, allocations: 0 / 0.7611 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=506): time 0.05127/1.531, allocations: 25.86 MB / 0.7864 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/1.531, allocations: 131.3 kB / 0.7865 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00731/1.539, allocations: 5.957 MB / 0.7923 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006757/1.539, allocations: 108.1 kB / 0.7924 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002972/1.542, allocations: 6.372 MB / 0.7986 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.544, allocations: 1.815 MB / 0.8004 GB, free: 144.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002046/1.546, allocations: 1.481 MB / 0.8019 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.237e-05/1.546, allocations: 309.1 kB / 0.8022 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004342/1.55, allocations: 3.641 MB / 0.8057 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005413/1.556, allocations: 6.532 MB / 0.8121 GB, free: 136.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.566, allocations: 10.78 MB / 0.8226 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.113e-05/1.566, allocations: 28 kB / 0.8227 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01699/1.583, allocations: 12.02 MB / 0.8344 GB, free: 117 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.606e-05/1.583, allocations: 50.23 kB / 0.8344 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/1.583, allocations: 92 kB / 0.8345 GB, free: 116.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003877/1.587, allocations: 1.585 MB / 0.8361 GB, free: 115.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005811/1.593, allocations: 1.675 MB / 0.8377 GB, free: 113.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01869/1.612, allocations: 18.87 MB / 0.8561 GB, free: 94.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006634/1.618, allocations: 419.6 kB / 0.8565 GB, free: 94.05 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/1.62, allocations: 375.9 kB / 0.8569 GB, free: 93.68 MB / 0.5762 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.01044/1.63, allocations: 5.199 MB / 0.862 GB, free: 88.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001699/1.632, allocations: 0.6327 MB / 0.8626 GB, free: 87.96 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01484/1.647, allocations: 9.147 MB / 0.8715 GB, free: 78.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008004/1.655, allocations: 5.864 MB / 0.8772 GB, free: 72.98 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-05/1.655, allocations: 16 kB / 0.8773 GB, free: 72.96 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.835e-05/1.655, allocations: 27.91 kB / 0.8773 GB, free: 72.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03277/1.688, allocations: 19.96 MB / 0.8968 GB, free: 53.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/1.688, allocations: 4 kB / 0.8968 GB, free: 53.03 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003483/1.691, allocations: 0.8691 MB / 0.8976 GB, free: 52.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003976/1.695, allocations: 1.647 MB / 0.8992 GB, free: 50.54 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003566/1.696, allocations: 127.9 kB / 0.8994 GB, free: 50.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02054/1.716, allocations: 22.17 MB / 0.921 GB, free: 27.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.716, allocations: 11.66 kB / 0.921 GB, free: 27.57 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/1.735, allocations: 13.58 MB / 0.9343 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004021/1.739, allocations: 1.355 MB / 0.9356 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001292/1.74, allocations: 108 kB / 0.9357 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003133/1.744, allocations: 275.7 kB / 0.936 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008713/1.744, allocations: 443.6 kB / 0.9364 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003311/1.745, allocations: 160 kB / 0.9366 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005266/1.75, allocations: 3.904 MB / 0.9404 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.75, allocations: 4 kB / 0.9404 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007982/1.758, allocations: 2.34 MB / 0.9427 GB, free: 5.223 MB / 0.5762 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,5,100.0%), (1,8,100.0%), (1,13,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.0224/1.78, allocations: 14.35 MB / 0.9567 GB, free: 6.66 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01731/1.798, allocations: 9.449 MB / 0.9659 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.798, allocations: 4 kB / 0.9659 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00932/1.807, allocations: 5.149 MB / 0.9709 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007636/1.815, allocations: 1.644 MB / 0.9725 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3676/2.182, allocations: 80.18 MB / 1.051 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/2.192, allocations: 8.497 MB / 1.059 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006618/2.199, allocations: 2.54 MB / 1.062 GB, free: 182.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008686/2.208, allocations: 5.197 MB / 1.067 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.412e-06/2.208, allocations: 0 / 1.067 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5505/2.758, allocations: 198.7 MB / 1.261 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.69/24.45, allocations: 3.875 kB / 1.261 GB, free: 207.6 MB / 0.6075 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.748193115985487]