Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001661/0.001661, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.002032/0.002032, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.415/1.415, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 39.94 kB / 378.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2734, allocations: 53.36 MB / 432 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01289/0.2863, allocations: 9.807 MB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.294, allocations: 3.797 MB / 445.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.2956, allocations: 63.56 kB / 445.6 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002241/0.2978, allocations: 0.7028 MB / 446.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.3009, allocations: 0.9323 MB / 447.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.3024, allocations: 486.7 kB / 447.7 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00377/0.3061, allocations: 2.666 MB / 450.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.3077, allocations: 1.12 MB / 451.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.3095, allocations: 1.23 MB / 452.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002781/0.3123, allocations: 1.545 MB / 454.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007681/0.313, allocations: 311.9 kB / 454.6 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.3146, allocations: 0.6244 MB / 455.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.3158, allocations: 1.04 MB / 456.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.3178, allocations: 1.489 MB / 457.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005816/0.3236, allocations: 4.32 MB / 462.1 MB, free: 8.527 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.3236, allocations: 4 kB / 462.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3236, allocations: 0 / 462.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.975e-05/0.3237, allocations: 0 / 462.1 MB, free: 8.523 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007276/0.331, allocations: 3.185 MB / 465.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3311, allocations: 12.03 kB / 465.3 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001148/0.3312, allocations: 77.94 kB / 465.4 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006067/0.3318, allocations: 359.9 kB / 465.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.333, allocations: 386.7 kB / 466.1 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003427/0.3364, allocations: 1.673 MB / 467.8 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.3366, allocations: 160.2 kB / 467.9 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004484/0.337, allocations: 223.9 kB / 468.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005517/0.3426, allocations: 2.764 MB / 470.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.788e-05/0.3426, allocations: 11.95 kB / 470.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.3429, allocations: 84 kB / 471 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.343, allocations: 104.1 kB / 471.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004879/0.3479, allocations: 2.335 MB / 473.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01607/0.364, allocations: 8.188 MB / 481.6 MB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/0.3673, allocations: 1.401 MB / 483 MB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00236/0.3697, allocations: 1.104 MB / 484.1 MB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002541/0.3699, allocations: 49.27 kB / 484.2 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.37, allocations: 51.88 kB / 484.2 MB, free: 1.922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 3.596e-06/0.37, allocations: 0 / 484.2 MB, free: 1.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.04037/0.4104, allocations: 13.86 MB / 498.1 MB, free: 3.992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.4104, allocations: 77.34 kB / 498.2 MB, free: 3.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.414, allocations: 2.173 MB / 0.4886 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004035/0.4144, allocations: 57.7 kB / 0.4887 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.4155, allocations: 1.143 MB / 0.4898 GB, free: 480 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008825/0.4164, allocations: 0.767 MB / 0.4905 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006754/0.4171, allocations: 359.5 kB / 0.4909 GB, free: 15.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4172, allocations: 305.1 kB / 0.4912 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002328/0.4195, allocations: 1.175 MB / 0.4923 GB, free: 13.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002491/0.422, allocations: 1.475 MB / 0.4937 GB, free: 12.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004962/0.427, allocations: 2.812 MB / 0.4965 GB, free: 9.387 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.427, allocations: 0 / 0.4965 GB, free: 9.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008152/0.4351, allocations: 4.02 MB / 0.5004 GB, free: 5.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.4352, allocations: 11.98 kB / 0.5004 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.4352, allocations: 8 kB / 0.5004 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0029/0.4381, allocations: 1.087 MB / 0.5015 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/0.44, allocations: 407.4 kB / 0.5019 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01938/0.4594, allocations: 14.61 MB / 0.5162 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.4613, allocations: 139.9 kB / 0.5163 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.4616, allocations: 79.97 kB / 0.5164 GB, free: 4.555 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 182 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001624/0.4632, allocations: 0.802 MB / 0.5171 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/0.4638, allocations: 254.4 kB / 0.5174 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00788/0.4717, allocations: 3.86 MB / 0.5212 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.478e-05/0.4718, allocations: 28 kB / 0.5212 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.169e-05/0.4718, allocations: 12 kB / 0.5212 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/0.4719, allocations: 11.95 kB / 0.5212 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/0.4877, allocations: 7.196 MB / 0.5282 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.4877, allocations: 0 / 0.5282 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/0.4896, allocations: 363.7 kB / 0.5286 GB, free: 7.895 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002814/0.4924, allocations: 0.9571 MB / 0.5295 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000268/0.4926, allocations: 55.95 kB / 0.5296 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2073/0.6999, allocations: 13.62 MB / 0.5429 GB, free: 96.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6999, allocations: 6.812 kB / 0.5429 GB, free: 96.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009445/0.7094, allocations: 5.618 MB / 0.5484 GB, free: 94.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.7107, allocations: 498.7 kB / 0.5488 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004217/0.7112, allocations: 46.44 kB / 0.5489 GB, free: 94.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.7125, allocations: 133.1 kB / 0.549 GB, free: 94.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004379/0.713, allocations: 179 kB / 0.5492 GB, free: 93.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.7131, allocations: 71.33 kB / 0.5493 GB, free: 93.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001836/0.715, allocations: 1.544 MB / 0.5508 GB, free: 93.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.715, allocations: 0 / 0.5508 GB, free: 93.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002189/0.7172, allocations: 0.6896 MB / 0.5514 GB, free: 93.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * 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,6,100.0%), (1,6,100.0%), (2,13,100.0%), (2,12,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009846/0.727, allocations: 6.673 MB / 0.558 GB, free: 89.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005677/0.7327, allocations: 3.7 MB / 0.5616 GB, free: 86.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.7327, allocations: 0 / 0.5616 GB, free: 86.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/0.7361, allocations: 2.38 MB / 0.5639 GB, free: 84.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.7385, allocations: 490.3 kB / 0.5644 GB, free: 84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03326/0.7718, allocations: 25.55 MB / 0.5893 GB, free: 58.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001259/0.773, allocations: 2.099 MB / 0.5914 GB, free: 56.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00125/0.7743, allocations: 498.6 kB / 0.5918 GB, free: 55.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/0.7754, allocations: 1.101 MB / 0.5929 GB, free: 54.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7754, allocations: 0.6562 kB / 0.5929 GB, free: 54.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/0.8833, allocations: 64.5 MB / 0.6559 GB, free: 6.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.5/24.38, allocations: 7.812 kB / 0.6559 GB, free: 6.266 MB / 462.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 44.545285765023436]