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.001927/0.001927, allocations: 73.72 kB / 21.24 MB, free: 0.5547 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.001567/0.001567, allocations: 152.2 kB / 24.49 MB, free: 3.723 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.394/1.394, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 179] 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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 50.81 kB / 319.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09127/0.09285, allocations: 52.17 MB / 371.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01172/0.1046, allocations: 8.573 MB / 380.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006707/0.1113, allocations: 3.362 MB / 383.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008933/0.1122, allocations: 59.62 kB / 383.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.1139, allocations: 0.6405 MB / 384.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.1159, allocations: 0.8895 MB / 385.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1169, allocations: 463.2 kB / 385.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.1198, allocations: 2.639 MB / 388.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.1213, allocations: 1.077 MB / 389.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.1228, allocations: 1.215 MB / 390.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002047/0.1249, allocations: 1.451 MB / 392 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004436/0.1253, allocations: 308 kB / 392.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.1264, allocations: 0.5541 MB / 392.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.1275, allocations: 1.036 MB / 393.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.1288, allocations: 1.194 MB / 395.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004463/0.1333, allocations: 4.312 MB / 399.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1333, allocations: 0 / 399.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1333, allocations: 4 kB / 399.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.494e-05/0.1333, allocations: 0 / 399.4 MB, free: 11.36 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.005798/0.1391, allocations: 3.173 MB / 402.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1391, allocations: 8.922 kB / 402.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007804/0.1399, allocations: 335 kB / 402.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002988/0.1429, allocations: 1.638 MB / 404.5 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.1431, allocations: 159.9 kB / 404.7 MB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003243/0.1434, allocations: 211.9 kB / 404.9 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004631/0.148, allocations: 2.787 MB / 407.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-05/0.1481, allocations: 15.89 kB / 407.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000189/0.1483, allocations: 83.98 kB / 407.8 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/0.1484, allocations: 99.88 kB / 407.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004143/0.1525, allocations: 2.268 MB / 410.1 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.1651, allocations: 7.071 MB / 417.2 MB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002973/0.1681, allocations: 1.324 MB / 418.5 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002112/0.1702, allocations: 1.02 MB / 419.6 MB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002147/0.1704, allocations: 48.95 kB / 419.6 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/0.1704, allocations: 47.56 kB / 419.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.346e-06/0.1704, allocations: 0 / 419.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.0135/0.1839, allocations: 6.088 MB / 425.7 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.184, allocations: 68.7 kB / 425.8 MB, free: 496 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002778/0.1868, allocations: 2.014 MB / 427.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.653e-05/0.1869, allocations: 49.7 kB / 427.9 MB, free: 14.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009735/0.1878, allocations: 1.136 MB / 429 MB, free: 13.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005115/0.1883, allocations: 483.8 kB / 429.5 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000442/0.1888, allocations: 247.5 kB / 429.7 MB, free: 12.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.189, allocations: 361.9 kB / 430.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.1904, allocations: 0.7613 MB / 430.8 MB, free: 11.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.192, allocations: 1.006 MB / 431.8 MB, free: 10.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003218/0.1953, allocations: 1.865 MB / 433.7 MB, free: 8.367 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1953, allocations: 0 / 433.7 MB, free: 8.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00544/0.2007, allocations: 2.743 MB / 436.4 MB, free: 5.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.2007, allocations: 8 kB / 436.4 MB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.2007, allocations: 8 kB / 436.5 MB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00209/0.2028, allocations: 0.7773 MB / 437.2 MB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.204, allocations: 271.6 kB / 437.5 MB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/0.2173, allocations: 9.236 MB / 446.7 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.2185, allocations: 87.89 kB / 446.8 MB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.2186, allocations: 55.98 kB / 446.9 MB, free: 10.95 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.001326/0.22, allocations: 0.7395 MB / 447.6 MB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/0.2203, allocations: 202.8 kB / 447.8 MB, free: 10 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004912/0.2252, allocations: 2.468 MB / 450.3 MB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/0.2253, allocations: 12 kB / 450.3 MB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.2253, allocations: 8 kB / 450.3 MB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/0.2253, allocations: 7.969 kB / 450.3 MB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008614/0.2339, allocations: 4.369 MB / 454.7 MB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.2339, allocations: 4.156 kB / 454.7 MB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.235, allocations: 219.6 kB / 454.9 MB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.2368, allocations: 0.6551 MB / 455.6 MB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.867e-05/0.2369, allocations: 32.05 kB / 455.6 MB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.2471, allocations: 8.258 MB / 463.8 MB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.2472, allocations: 7.969 kB / 463.8 MB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006572/0.2537, allocations: 3.509 MB / 467.4 MB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009614/0.2547, allocations: 362.5 kB / 467.7 MB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.2549, allocations: 28 kB / 467.7 MB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009564/0.2559, allocations: 91.89 kB / 467.8 MB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002882/0.2561, allocations: 112.7 kB / 467.9 MB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.2562, allocations: 35.98 kB / 468 MB, free: 5.391 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002065/0.2583, allocations: 1.407 MB / 469.4 MB, free: 3.992 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2583, allocations: 0 / 469.4 MB, free: 3.992 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001702/0.26, allocations: 0.5235 MB / 469.9 MB, free: 3.469 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.001715/0.2617, allocations: 492 kB / 470.4 MB, free: 3.133 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004512/0.2662, allocations: 2.303 MB / 472.7 MB, free: 0.8008 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2662, allocations: 0 / 472.7 MB, free: 0.8008 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1591/0.4253, allocations: 1.448 MB / 474.1 MB, free: 91.13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.4273, allocations: 379.8 kB / 474.5 MB, free: 91.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007307/0.4346, allocations: 5.194 MB / 479.7 MB, free: 89.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.4361, allocations: 1.376 MB / 481.1 MB, free: 89.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.4372, allocations: 374 kB / 481.4 MB, free: 89.17 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/0.4376, allocations: 123.9 kB / 481.6 MB, free: 89.16 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4376, allocations: 4 kB / 481.6 MB, free: 89.16 MB / 430.1 MB Notification: Performance of Templates: time 0.04034/0.4779, allocations: 29.51 MB / 0.4991 GB, free: 67.34 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.487654071068391]