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.001092/0.001092, allocations: 113.9 kB / 17.68 MB, free: 5.379 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.001114/0.001114, allocations: 192 kB / 18.62 MB, free: 4.457 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.211/1.211, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 46.31 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.08085, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.1978/0.2787, allocations: 38.27 MB / 389.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02075/0.2995, allocations: 10.03 MB / 399.8 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006984/0.3065, allocations: 291 kB / 400.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02014/0.3267, allocations: 10.17 MB / 410.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01285/0.3395, allocations: 4.048 MB / 414.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006904/0.3464, allocations: 2.371 MB / 416.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02081/0.3673, allocations: 16.37 MB / 433.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04505/0.4124, allocations: 31.2 MB / 464.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01333/0.4257, allocations: 8.47 MB / 472.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01319/0.4389, allocations: 9.32 MB / 482.1 MB, free: 2.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006093/0.4451, allocations: 2.414 MB / 484.5 MB, free: 104 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008557/0.4536, allocations: 2.812 MB / 487.3 MB, free: 13.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007349/0.461, allocations: 4.805 MB / 492.1 MB, free: 8.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0164/0.4775, allocations: 9.203 MB / 0.4895 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4604/0.9379, allocations: 32.1 MB / 0.5209 GB, free: 65.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.9379, allocations: 1.156 kB / 0.5209 GB, free: 65.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.9379, allocations: 1.641 kB / 0.5209 GB, free: 65.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008319/0.9388, allocations: 3.469 kB / 0.5209 GB, free: 65.73 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.05375/0.9925, allocations: 18.67 MB / 0.5391 GB, free: 61.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.9926, allocations: 10.16 kB / 0.5391 GB, free: 61.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04213/1.035, allocations: 8.303 MB / 0.5472 GB, free: 60.25 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02058/1.055, allocations: 10.19 MB / 0.5572 GB, free: 57.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008778/1.056, allocations: 1.065 MB / 0.5582 GB, free: 57.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005796/1.062, allocations: 1.395 MB / 0.5596 GB, free: 56.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04503/1.107, allocations: 22.74 MB / 0.5818 GB, free: 33.89 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003671/1.107, allocations: 23.8 kB / 0.5818 GB, free: 33.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001956/1.109, allocations: 0.5756 MB / 0.5824 GB, free: 33.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004587/1.11, allocations: 0.7754 MB / 0.5831 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/1.14, allocations: 21.01 MB / 0.6037 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1106/1.251, allocations: 71.99 MB / 0.674 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03173/1.282, allocations: 42.4 MB / 0.7154 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2188/1.501, allocations: 5.2 MB / 0.7204 GB, free: 210.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02506/1.526, allocations: 12.68 MB / 0.7328 GB, free: 207.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/1.526, allocations: 88.2 kB / 0.7329 GB, free: 207.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 6.642e-06/1.526, allocations: 4.969 kB / 0.7329 GB, free: 207.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.05258/1.579, allocations: 26.27 MB / 0.7586 GB, free: 196.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/1.579, allocations: 142.6 kB / 0.7587 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007546/1.587, allocations: 5.751 MB / 0.7643 GB, free: 193.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008809/1.588, allocations: 109.1 kB / 0.7644 GB, free: 193.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002848/1.59, allocations: 6.154 MB / 0.7704 GB, free: 189.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00149/1.592, allocations: 1.731 MB / 0.7721 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001974/1.594, allocations: 1.461 MB / 0.7736 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.915e-05/1.594, allocations: 305.1 kB / 0.7738 GB, free: 186.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004433/1.598, allocations: 3.632 MB / 0.7774 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005535/1.604, allocations: 6.475 MB / 0.7837 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/1.614, allocations: 10.76 MB / 0.7942 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-05/1.614, allocations: 28 kB / 0.7943 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01864/1.633, allocations: 12.08 MB / 0.8061 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.232e-05/1.633, allocations: 44 kB / 0.8061 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/1.633, allocations: 92 kB / 0.8062 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003829/1.637, allocations: 1.595 MB / 0.8077 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005704/1.643, allocations: 1.665 MB / 0.8094 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01828/1.661, allocations: 19.62 MB / 0.8285 GB, free: 130.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006245/1.667, allocations: 419.5 kB / 0.8289 GB, free: 130 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/1.669, allocations: 368 kB / 0.8293 GB, free: 129.7 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.007382/1.676, allocations: 5.188 MB / 0.8343 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001311/1.677, allocations: 0.602 MB / 0.8349 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.691, allocations: 9.354 MB / 0.8441 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007274/1.698, allocations: 5.876 MB / 0.8498 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.286e-05/1.698, allocations: 18.19 kB / 0.8498 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.963e-05/1.698, allocations: 27.89 kB / 0.8498 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03154/1.73, allocations: 20.98 MB / 0.8703 GB, free: 87.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/1.73, allocations: 8 kB / 0.8703 GB, free: 87.38 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003378/1.733, allocations: 0.8664 MB / 0.8712 GB, free: 86.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003938/1.737, allocations: 1.641 MB / 0.8728 GB, free: 84.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006594/1.738, allocations: 128 kB / 0.8729 GB, free: 84.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01934/1.757, allocations: 23.21 MB / 0.8956 GB, free: 60.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.757, allocations: 8.016 kB / 0.8956 GB, free: 60.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01779/1.775, allocations: 13.71 MB / 0.909 GB, free: 46.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003994/1.779, allocations: 1.357 MB / 0.9103 GB, free: 45.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/1.781, allocations: 108 kB / 0.9104 GB, free: 45.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003771/1.785, allocations: 283.7 kB / 0.9107 GB, free: 44.76 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008942/1.786, allocations: 408.7 kB / 0.9111 GB, free: 44.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003229/1.786, allocations: 156 kB / 0.9112 GB, free: 44.21 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005153/1.791, allocations: 3.887 MB / 0.915 GB, free: 40.35 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.791, allocations: 0 / 0.915 GB, free: 40.35 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009385/1.801, allocations: 2.336 MB / 0.9173 GB, free: 38.02 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.001019/1.802, allocations: 322.3 kB / 0.9176 GB, free: 37.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01453/1.816, allocations: 9.894 MB / 0.9273 GB, free: 27.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/1.816, allocations: 4 kB / 0.9273 GB, free: 27.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2039/2.02, allocations: 5.431 MB / 0.9326 GB, free: 193.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008785/2.029, allocations: 1.634 MB / 0.9342 GB, free: 192.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05039/2.079, allocations: 24.59 MB / 0.9582 GB, free: 186.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01168/2.091, allocations: 8.845 MB / 0.9668 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007808/2.099, allocations: 2.534 MB / 0.9693 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001649/2.101, allocations: 454.7 kB / 0.9697 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/2.101, allocations: 0 / 0.9697 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of Templates: time 1.221/3.322, allocations: 94.12 MB / 1.062 GB, free: 101.6 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 -s cvode -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/jenkins1/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/jenkins1/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