Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.0009034/0.0009034, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008885/0.0008885, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.877/0.877, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.207e-05, allocations: 5.234 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01181/0.01183, allocations: 12.51 MB / 337.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008307/0.02013, allocations: 4.462 MB / 341.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.02206, allocations: 99.44 kB / 341.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.02417, allocations: 1.013 MB / 342.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.02694, allocations: 1.362 MB / 344 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.02835, allocations: 0.927 MB / 345 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003325/0.03168, allocations: 4.33 MB / 349.3 MB, free: 7.102 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.03325, allocations: 1.746 MB / 351 MB, free: 5.289 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00243/0.03568, allocations: 2.866 MB / 353.9 MB, free: 2.418 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.03715, allocations: 1.757 MB / 355.7 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000355/0.03751, allocations: 0.5078 MB / 356.2 MB, free: 152 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008098/0.03832, allocations: 0.7105 MB / 356.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000599/0.03891, allocations: 1.149 MB / 358 MB, free: 14.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009492/0.03986, allocations: 1.454 MB / 359.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.04426, allocations: 6.825 MB / 366.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.04427, allocations: 0 / 366.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.04427, allocations: 0 / 366.3 MB, free: 5.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.974e-05/0.04434, allocations: 0 / 366.3 MB, free: 5.984 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.006454/0.0508, allocations: 4.4 MB / 370.7 MB, free: 1.523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.05085, allocations: 8.031 kB / 370.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004263/0.05128, allocations: 455.8 kB / 371.2 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/0.05347, allocations: 0.83 MB / 372 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/0.05622, allocations: 2.384 MB / 374.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.05635, allocations: 246.8 kB / 374.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000328/0.05667, allocations: 320.3 kB / 374.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005113/0.06179, allocations: 4.425 MB / 379.4 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-05/0.06184, allocations: 7.938 kB / 379.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002159/0.06206, allocations: 136 kB / 379.5 MB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.06217, allocations: 146.4 kB / 379.6 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004394/0.06656, allocations: 3.601 MB / 383.2 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01352/0.08008, allocations: 12.31 MB / 395.5 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003185/0.08327, allocations: 2.59 MB / 398.1 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.08475, allocations: 1.281 MB / 399.4 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003699/0.08845, allocations: 3.095 MB / 402.5 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.08848, allocations: 51.88 kB / 402.6 MB, free: 1.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=134): time 2.845e-06/0.08848, allocations: 0 / 402.6 MB, free: 1.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=137): time 0.006817/0.0953, allocations: 5.237 MB / 407.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.09534, allocations: 76.64 kB / 407.9 MB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.09714, allocations: 1.829 MB / 409.7 MB, free: 10.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/0.0972, allocations: 49.7 kB / 409.8 MB, free: 9.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007177/0.09792, allocations: 1.482 MB / 411.2 MB, free: 8.461 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000249/0.09817, allocations: 0.4919 MB / 411.7 MB, free: 7.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.09849, allocations: 315.4 kB / 412 MB, free: 7.652 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.568e-05/0.09856, allocations: 301.1 kB / 412.3 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007251/0.09929, allocations: 0.6793 MB / 413 MB, free: 6.676 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009631/0.1003, allocations: 1.222 MB / 414.2 MB, free: 5.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.102, allocations: 2.014 MB / 416.2 MB, free: 2.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.1021, allocations: 4 kB / 416.2 MB, free: 2.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.002662/0.1047, allocations: 2.461 MB / 418.7 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.1047, allocations: 16 kB / 418.7 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.1048, allocations: 19.98 kB / 418.7 MB, free: 472 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006146/0.1054, allocations: 364 kB / 419.1 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007164/0.1061, allocations: 379.4 kB / 419.5 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005201/0.1113, allocations: 7.908 MB / 427.4 MB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007883/0.1121, allocations: 79.98 kB / 427.5 MB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.1122, allocations: 75.98 kB / 427.5 MB, free: 7.207 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,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.001234/0.1134, allocations: 1.008 MB / 428.5 MB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.1136, allocations: 202.7 kB / 428.7 MB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.1159, allocations: 2.131 MB / 430.9 MB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1159, allocations: 12 kB / 430.9 MB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.1159, allocations: 8 kB / 430.9 MB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1159, allocations: 7.969 kB / 430.9 MB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005324/0.1213, allocations: 4.609 MB / 435.5 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.393e-06/0.1213, allocations: 11.97 kB / 435.5 MB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.1217, allocations: 167.8 kB / 435.7 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000834/0.1225, allocations: 0.5319 MB / 436.2 MB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.1226, allocations: 35.98 kB / 436.2 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008101/0.1307, allocations: 12.49 MB / 448.7 MB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.1307, allocations: 12.12 kB / 448.8 MB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2054/0.3361, allocations: 3.057 MB / 451.8 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.3373, allocations: 370.8 kB / 452.2 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.3375, allocations: 34.67 kB / 452.2 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005404/0.3381, allocations: 60.41 kB / 452.3 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.3384, allocations: 115.5 kB / 452.4 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.3384, allocations: 42.39 kB / 452.4 MB, free: 110.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001458/0.3399, allocations: 1.232 MB / 453.7 MB, free: 110.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3399, allocations: 0 / 453.7 MB, free: 110.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001629/0.3415, allocations: 0.5838 MB / 454.2 MB, free: 110.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003238/0.3448, allocations: 3.682 MB / 457.9 MB, free: 108.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.347, allocations: 2.21 MB / 460.1 MB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.347, allocations: 0 / 460.1 MB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001308/0.3483, allocations: 1.675 MB / 461.8 MB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.3496, allocations: 0.5538 MB / 462.4 MB, free: 106.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02022/0.3698, allocations: 20.02 MB / 482.4 MB, free: 87.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.3709, allocations: 1.753 MB / 484.1 MB, free: 86.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000793/0.3717, allocations: 409.1 kB / 484.5 MB, free: 85.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000757/0.3725, allocations: 1.141 MB / 485.7 MB, free: 84.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.784e-06/0.3725, allocations: 0 / 485.7 MB, free: 84.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08631/0.4588, allocations: 57.66 MB / 0.5306 GB, free: 27.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.755, allocations: 15.86 kB / 0.5306 GB, free: 27.56 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.816501968540251]