Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001659, allocations: 109.4 kB / 17.73 MB, free: 5.32 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.001928/0.001929, allocations: 196.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.1 MB / 224.6 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 56.39 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1034, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.266/0.3694, allocations: 38.37 MB / 413.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02902/0.3985, allocations: 10.01 MB / 423.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01222/0.4108, allocations: 250.8 kB / 423.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02736/0.4383, allocations: 10.25 MB / 433.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0195/0.4579, allocations: 4.166 MB / 437.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009514/0.4674, allocations: 2.417 MB / 440.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02933/0.4967, allocations: 16.53 MB / 456.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06657/0.5634, allocations: 31.19 MB / 487.9 MB, free: 14.3 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01776/0.5812, allocations: 8.571 MB / 496.4 MB, free: 5.703 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01961/0.6009, allocations: 9.425 MB / 0.494 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007763/0.6087, allocations: 2.426 MB / 0.4964 GB, free: 9.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.6213, allocations: 2.816 MB / 0.4991 GB, free: 7.004 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0109/0.6323, allocations: 4.875 MB / 0.5039 GB, free: 2.117 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02228/0.6546, allocations: 9.276 MB / 0.5129 GB, free: 8.801 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05085/0.7055, allocations: 32.21 MB / 0.5444 GB, free: 8.492 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.7056, allocations: 0 / 0.5444 GB, free: 8.492 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.7056, allocations: 0 / 0.5444 GB, free: 8.492 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001202/0.7068, allocations: 0 / 0.5444 GB, free: 8.492 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.5176/1.224, allocations: 19.19 MB / 0.5631 GB, free: 132.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.809e-05/1.224, allocations: 17.27 kB / 0.5631 GB, free: 132.3 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01294/1.237, allocations: 2.319 MB / 0.5654 GB, free: 131.2 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05522/1.293, allocations: 9.37 MB / 0.5746 GB, free: 127.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.029/1.322, allocations: 9.217 MB / 0.5836 GB, free: 122.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001548/1.323, allocations: 1.074 MB / 0.5846 GB, free: 121.4 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007885/1.331, allocations: 1.417 MB / 0.586 GB, free: 120 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07188/1.403, allocations: 23.21 MB / 0.6087 GB, free: 96.79 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00149/1.405, allocations: 25.64 kB / 0.6087 GB, free: 96.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008506/1.413, allocations: 0.5853 MB / 0.6093 GB, free: 96.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009338/1.414, allocations: 0.811 MB / 0.61 GB, free: 95.38 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04885/1.463, allocations: 21.69 MB / 0.6312 GB, free: 73.68 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1455/1.609, allocations: 73.43 MB / 0.7029 GB, free: 15.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05324/1.662, allocations: 53.56 MB / 0.7552 GB, free: 3.719 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.289/1.951, allocations: 5.346 MB / 0.7605 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03545/1.986, allocations: 15.45 MB / 0.7755 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.397e-05/1.987, allocations: 88.58 kB / 0.7756 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 8.516e-06/1.987, allocations: 0 / 0.7756 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.06365/2.05, allocations: 27.27 MB / 0.8023 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/2.05, allocations: 134.5 kB / 0.8024 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009099/2.059, allocations: 5.914 MB / 0.8082 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009818/2.061, allocations: 106.5 kB / 0.8083 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003608/2.064, allocations: 6.508 MB / 0.8146 GB, free: 158 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00196/2.066, allocations: 1.816 MB / 0.8164 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002322/2.068, allocations: 1.536 MB / 0.8179 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.904e-05/2.069, allocations: 309.1 kB / 0.8182 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004925/2.073, allocations: 3.685 MB / 0.8218 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/2.079, allocations: 6.765 MB / 0.8284 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/2.091, allocations: 11.15 MB / 0.8393 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.385e-05/2.091, allocations: 28 kB / 0.8393 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1001) (initialization): time 0.01977/2.111, allocations: 12.43 MB / 0.8514 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/2.111, allocations: 48 kB / 0.8515 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001817/2.111, allocations: 104 kB / 0.8516 GB, free: 118 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00454/2.115, allocations: 1.604 MB / 0.8532 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006948/2.122, allocations: 1.747 MB / 0.8549 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/2.144, allocations: 19.64 MB / 0.874 GB, free: 94.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008267/2.153, allocations: 443.6 kB / 0.8745 GB, free: 93.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/2.155, allocations: 395.9 kB / 0.8748 GB, free: 93.48 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * 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 (904): * Single equations (assignments): 897 * 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,54.2%), (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.0122/2.167, allocations: 5.246 MB / 0.88 GB, free: 88.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002823/2.17, allocations: 0.6365 MB / 0.8806 GB, free: 87.58 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01824/2.188, allocations: 9.377 MB / 0.8897 GB, free: 78.11 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009548/2.198, allocations: 5.872 MB / 0.8955 GB, free: 72.21 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.781e-05/2.198, allocations: 16 kB / 0.8955 GB, free: 72.19 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.329e-05/2.198, allocations: 31.89 kB / 0.8955 GB, free: 72.16 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05186/2.25, allocations: 21.08 MB / 0.9161 GB, free: 50.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-05/2.25, allocations: 7.75 kB / 0.9161 GB, free: 50.96 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004345/2.254, allocations: 0.866 MB / 0.917 GB, free: 50.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005042/2.259, allocations: 1.639 MB / 0.9186 GB, free: 48.43 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00115/2.26, allocations: 128 kB / 0.9187 GB, free: 48.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02483/2.285, allocations: 23.23 MB / 0.9414 GB, free: 24.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/2.285, allocations: 11.94 kB / 0.9414 GB, free: 24.13 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3783/2.664, allocations: 13.75 MB / 0.9548 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005812/2.669, allocations: 1.399 MB / 0.9562 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001619/2.671, allocations: 103.8 kB / 0.9563 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003515/2.675, allocations: 289.1 kB / 0.9565 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/2.676, allocations: 404 kB / 0.9569 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003884/2.676, allocations: 154.4 kB / 0.9571 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007873/2.684, allocations: 3.964 MB / 0.9609 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/2.684, allocations: 4.438 kB / 0.961 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01329/2.697, allocations: 2.373 MB / 0.9633 GB, free: 162.2 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.0265/2.724, allocations: 14.54 MB / 0.9775 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01724/2.741, allocations: 10.03 MB / 0.9873 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/2.741, allocations: 3.75 kB / 0.9873 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01045/2.752, allocations: 5.464 MB / 0.9926 GB, free: 150 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0147/2.766, allocations: 1.64 MB / 0.9942 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1622/2.929, allocations: 82.06 MB / 1.074 GB, free: 75.88 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01155/2.94, allocations: 8.93 MB / 1.083 GB, free: 66.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007423/2.948, allocations: 2.591 MB / 1.086 GB, free: 64.32 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007646/2.955, allocations: 5.201 MB / 1.091 GB, free: 59.11 MB / 0.5294 GB Notification: Performance of SimCode: time 2.354e-06/2.955, allocations: 4 kB / 1.091 GB, free: 59.11 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.57/3.525, allocations: 189.3 MB / 1.276 GB, free: 87.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.95/28.48, allocations: 19.73 kB / 1.276 GB, free: 87.43 MB / 0.545 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches