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.0007809/0.000781, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.00092/0.00092, allocations: 182 kB / 17.56 MB, free: 6.203 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.332/1.332, allocations: 223.3 MB / 241.6 MB, free: 136 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002696, allocations: 15.92 kB / 301.5 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09829, allocations: 50.41 MB / 351.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.2191/0.3175, allocations: 36.1 MB / 388 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.34, allocations: 9.846 MB / 397.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00885/0.3489, allocations: 270 kB / 398.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008857/0.3578, allocations: 2.463 MB / 400.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01703/0.3748, allocations: 3.659 MB / 404.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008366/0.3832, allocations: 2.092 MB / 406.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0284/0.4116, allocations: 16.61 MB / 422.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06201/0.4737, allocations: 29.31 MB / 452.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01199/0.4857, allocations: 5.931 MB / 458.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01359/0.4993, allocations: 7.208 MB / 465.3 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0046/0.504, allocations: 0.9336 MB / 466.3 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008265/0.5122, allocations: 1.335 MB / 467.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006424/0.5187, allocations: 3.032 MB / 470.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01701/0.5357, allocations: 7.271 MB / 477.9 MB, free: 7.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03806/0.5738, allocations: 30.13 MB / 0.4961 GB, free: 9.359 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.5739, allocations: 3.938 kB / 0.4961 GB, free: 9.355 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5739, allocations: 0 / 0.4961 GB, free: 9.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001083/0.575, allocations: 0 / 0.4961 GB, free: 9.355 MB / 414.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.04975/0.6248, allocations: 15.6 MB / 0.5114 GB, free: 9.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.6248, allocations: 12.03 kB / 0.5114 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04715/0.672, allocations: 8.286 MB / 0.5195 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.427/1.099, allocations: 9.894 MB / 0.5291 GB, free: 106.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001451/1.101, allocations: 1.065 MB / 0.5302 GB, free: 106 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006561/1.107, allocations: 1.403 MB / 0.5316 GB, free: 105.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06153/1.169, allocations: 22.78 MB / 0.5538 GB, free: 96.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005873/1.169, allocations: 23.39 kB / 0.5538 GB, free: 96.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004586/1.174, allocations: 0.5807 MB / 0.5544 GB, free: 95.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006754/1.175, allocations: 0.7683 MB / 0.5551 GB, free: 95.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04143/1.216, allocations: 21.05 MB / 0.5757 GB, free: 76.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1133/1.329, allocations: 73.14 MB / 0.6471 GB, free: 2.035 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03844/1.368, allocations: 42.42 MB / 0.6885 GB, free: 2.699 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009562/1.377, allocations: 5.266 MB / 0.6937 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02892/1.406, allocations: 12.83 MB / 0.7062 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.982e-05/1.407, allocations: 94.66 kB / 0.7063 GB, free: 0.543 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.272e-06/1.407, allocations: 0 / 0.7063 GB, free: 0.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.2784/1.685, allocations: 26.81 MB / 0.7325 GB, free: 150.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/1.685, allocations: 128.8 kB / 0.7326 GB, free: 150.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008329/1.693, allocations: 5.757 MB / 0.7382 GB, free: 148.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009506/1.694, allocations: 105.5 kB / 0.7383 GB, free: 148.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003072/1.697, allocations: 6.144 MB / 0.7443 GB, free: 143.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/1.699, allocations: 1.752 MB / 0.746 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008886/1.7, allocations: 0.5957 MB / 0.7466 GB, free: 141.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.554e-05/1.7, allocations: 305.1 kB / 0.7469 GB, free: 141.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005066/1.705, allocations: 3.686 MB / 0.7505 GB, free: 140.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006371/1.712, allocations: 6.522 MB / 0.7569 GB, free: 135.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/1.724, allocations: 10.86 MB / 0.7675 GB, free: 127.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/1.724, allocations: 29.28 kB / 0.7675 GB, free: 127.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02063/1.744, allocations: 12.19 MB / 0.7794 GB, free: 117.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.233e-05/1.745, allocations: 44.56 kB / 0.7795 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/1.745, allocations: 92 kB / 0.7796 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004101/1.749, allocations: 1.603 MB / 0.7811 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006362/1.755, allocations: 1.661 MB / 0.7827 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/1.775, allocations: 18.23 MB / 0.8005 GB, free: 95.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006675/1.782, allocations: 431.4 kB / 0.801 GB, free: 95.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001511/1.783, allocations: 372 kB / 0.8013 GB, free: 94.78 MB / 494.1 MB 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 (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.5%), (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.01015/1.793, allocations: 5.184 MB / 0.8064 GB, free: 89.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001739/1.795, allocations: 0.602 MB / 0.807 GB, free: 88.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.81, allocations: 9.464 MB / 0.8162 GB, free: 79.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008834/1.819, allocations: 5.955 MB / 0.822 GB, free: 73.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.253e-05/1.819, allocations: 20 kB / 0.822 GB, free: 73.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.613e-05/1.819, allocations: 27.89 kB / 0.8221 GB, free: 73.38 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03483/1.854, allocations: 21.17 MB / 0.8427 GB, free: 52.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.378e-05/1.854, allocations: 8.094 kB / 0.8427 GB, free: 52.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003524/1.858, allocations: 0.8698 MB / 0.8436 GB, free: 51.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/1.862, allocations: 1.633 MB / 0.8452 GB, free: 49.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006985/1.863, allocations: 124 kB / 0.8453 GB, free: 49.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0198/1.883, allocations: 21.36 MB / 0.8662 GB, free: 27.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/1.883, allocations: 15.92 kB / 0.8662 GB, free: 27.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0184/1.901, allocations: 13.88 MB / 0.8797 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003191/1.904, allocations: 1.368 MB / 0.8811 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.905, allocations: 104.1 kB / 0.8812 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2196/2.125, allocations: 299.9 kB / 0.8815 GB, free: 142.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001962/2.127, allocations: 415.4 kB / 0.8819 GB, free: 142.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006664/2.128, allocations: 154.2 kB / 0.882 GB, free: 142.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01063/2.138, allocations: 3.888 MB / 0.8858 GB, free: 141.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.3e-07/2.138, allocations: 4.875 kB / 0.8858 GB, free: 141.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01245/2.151, allocations: 2.335 MB / 0.8881 GB, free: 141.9 MB / 494.1 MB 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001828/2.153, allocations: 323.4 kB / 0.8884 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02147/2.174, allocations: 9.972 MB / 0.8981 GB, free: 139.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.067e-05/2.174, allocations: 0 / 0.8981 GB, free: 139.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01004/2.184, allocations: 5.507 MB / 0.9035 GB, free: 136.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01282/2.197, allocations: 1.537 MB / 0.905 GB, free: 136.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04609/2.243, allocations: 31.07 MB / 0.9354 GB, free: 119 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01569/2.259, allocations: 8.853 MB / 0.944 GB, free: 114.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.009595/2.268, allocations: 2.522 MB / 0.9465 GB, free: 112.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002684/2.271, allocations: 460.8 kB / 0.9469 GB, free: 112.2 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/2.271, allocations: 0 / 0.9469 GB, free: 112.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1608/2.432, allocations: 97.38 MB / 1.042 GB, free: 19.17 MB / 494.1 MB 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