Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 108.3 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 183.2 kB / 23.71 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 47.92 kB / 370.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2462, allocations: 52.19 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01234/0.2586, allocations: 9.748 MB / 432.4 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006887/0.2655, allocations: 3.591 MB / 436 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.2668, allocations: 63.56 kB / 436.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.2687, allocations: 0.7028 MB / 436.8 MB, free: 448 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002456/0.2712, allocations: 0.8817 MB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.2723, allocations: 475.1 kB / 438.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003436/0.2757, allocations: 2.646 MB / 440.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001514/0.2772, allocations: 1.109 MB / 441.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.2788, allocations: 1.219 MB / 443.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.2811, allocations: 1.537 MB / 444.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000534/0.2817, allocations: 308 kB / 444.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.2829, allocations: 0.64 MB / 445.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.2841, allocations: 1.048 MB / 446.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.2859, allocations: 1.485 MB / 448.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005145/0.2911, allocations: 4.304 MB / 452.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2911, allocations: 0 / 452.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2911, allocations: 4 kB / 452.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.454e-05/0.2911, allocations: 4 kB / 452.4 MB, free: 0.6797 MB / 350.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.006478/0.2976, allocations: 3.169 MB / 455.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.2977, allocations: 8.031 kB / 455.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005285/0.2982, allocations: 347.5 kB / 455.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008506/0.299, allocations: 346.9 kB / 456.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003529/0.3026, allocations: 1.653 MB / 457.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.3027, allocations: 156.1 kB / 458.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004083/0.3031, allocations: 208 kB / 458.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00531/0.3084, allocations: 2.735 MB / 461 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.661e-05/0.3085, allocations: 7.953 kB / 461 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.3087, allocations: 80 kB / 461.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.3088, allocations: 100 kB / 461.2 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004295/0.3131, allocations: 2.292 MB / 463.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.3268, allocations: 8.077 MB / 471.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.3298, allocations: 1.328 MB / 472.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002031/0.3318, allocations: 1.016 MB / 473.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002292/0.332, allocations: 52.95 kB / 474 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/0.3321, allocations: 47.55 kB / 474 MB, free: 10.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.126e-06/0.3321, allocations: 4 kB / 474 MB, free: 10.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01362/0.3457, allocations: 6.115 MB / 480.1 MB, free: 4.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.3458, allocations: 68.66 kB / 480.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00333/0.3491, allocations: 2.152 MB / 482.4 MB, free: 2.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.3493, allocations: 45.7 kB / 482.4 MB, free: 2.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000973/0.3503, allocations: 1.145 MB / 483.5 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004818/0.3508, allocations: 479.9 kB / 484 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004412/0.3512, allocations: 239.6 kB / 484.2 MB, free: 276 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.3514, allocations: 365.9 kB / 484.6 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.3527, allocations: 0.7574 MB / 485.4 MB, free: 15.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.3542, allocations: 1.013 MB / 486.4 MB, free: 14.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002936/0.3572, allocations: 1.861 MB / 488.2 MB, free: 12.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.3572, allocations: 4 kB / 488.2 MB, free: 12.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005251/0.3624, allocations: 2.754 MB / 491 MB, free: 9.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.3625, allocations: 8 kB / 491 MB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.3625, allocations: 11.94 kB / 491 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.3645, allocations: 0.7853 MB / 491.8 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.3656, allocations: 271.5 kB / 492.1 MB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/0.3783, allocations: 9.388 MB / 0.4897 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.3798, allocations: 91.95 kB / 0.4898 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.38, allocations: 55.98 kB / 0.4898 GB, free: 14.48 MB / 414.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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001404/0.3814, allocations: 0.7394 MB / 0.4906 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004693/0.3819, allocations: 210.6 kB / 0.4908 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.3868, allocations: 2.473 MB / 0.4932 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.394e-05/0.3869, allocations: 16 kB / 0.4932 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/0.3869, allocations: 8 kB / 0.4932 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.3869, allocations: 7.969 kB / 0.4932 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009859/0.3968, allocations: 4.918 MB / 0.498 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.3968, allocations: 0 / 0.498 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.3978, allocations: 215.6 kB / 0.4982 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.3997, allocations: 0.6473 MB / 0.4988 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/0.3998, allocations: 31.97 kB / 0.4989 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.4099, allocations: 8.428 MB / 0.5071 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4099, allocations: 0 / 0.5071 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006386/0.4163, allocations: 3.521 MB / 0.5105 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.4174, allocations: 378.5 kB / 0.5109 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000445/0.4179, allocations: 39.98 kB / 0.5109 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.419, allocations: 87.91 kB / 0.511 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003009/0.4193, allocations: 112.8 kB / 0.5111 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.412e-05/0.4194, allocations: 35.98 kB / 0.5112 GB, free: 8.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.4218, allocations: 1.523 MB / 0.5127 GB, free: 6.574 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4218, allocations: 0 / 0.5127 GB, free: 6.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001929/0.4237, allocations: 0.5234 MB / 0.5132 GB, free: 6.051 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,6,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.008121/0.4318, allocations: 4.459 MB / 0.5175 GB, free: 1.672 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004492/0.4363, allocations: 2.298 MB / 0.5198 GB, free: 15.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4363, allocations: 0 / 0.5198 GB, free: 15.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/0.4391, allocations: 1.453 MB / 0.5212 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/0.4413, allocations: 457.5 kB / 0.5216 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2269/0.6683, allocations: 21.09 MB / 0.5422 GB, free: 106 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.6696, allocations: 1.963 MB / 0.5441 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.6706, allocations: 396.8 kB / 0.5445 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009645/0.6716, allocations: 0.9759 MB / 0.5455 GB, free: 104.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6716, allocations: 0 / 0.5455 GB, free: 104.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09216/0.7638, allocations: 52.58 MB / 0.5968 GB, free: 56.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.83/25.59, allocations: 4 kB / 0.5968 GB, free: 56.23 MB / 446.1 MB " [Timeout remaining time 634] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 36.05041379504837]