Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.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.0008219/0.0008219, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008308/0.0008308, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8697/0.8697, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026e-05/1.149e-05, allocations: 2.281 kB / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.008879/0.008891, allocations: 11.28 MB / 329.7 MB, free: 11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006211/0.0151, allocations: 3.98 MB / 333.7 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.01671, allocations: 103.3 kB / 333.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.0183, allocations: 0.9624 MB / 334.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.0203, allocations: 1.285 MB / 336.1 MB, free: 4.641 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006455/0.02095, allocations: 0.5187 MB / 336.6 MB, free: 4.121 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002725/0.02367, allocations: 4.812 MB / 341.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.02528, allocations: 2.011 MB / 343.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002517/0.0278, allocations: 3.154 MB / 346.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.02977, allocations: 2.284 MB / 348.8 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005739/0.03034, allocations: 0.5508 MB / 349.4 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000686/0.03103, allocations: 0.6443 MB / 350 MB, free: 6.578 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008706/0.0319, allocations: 1.578 MB / 351.6 MB, free: 4.996 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00129/0.03319, allocations: 1.723 MB / 353.3 MB, free: 3.27 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004607/0.0378, allocations: 7.538 MB / 360.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.0378, allocations: 0 / 360.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.0378, allocations: 0 / 360.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.03791, allocations: 0 / 360.9 MB, free: 11.71 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.006078/0.04398, allocations: 4.681 MB / 365.6 MB, free: 6.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.04403, allocations: 12.92 kB / 365.6 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004594/0.04449, allocations: 0.4981 MB / 366.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007974/0.04529, allocations: 0.5214 MB / 366.6 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002791/0.04808, allocations: 2.52 MB / 369.1 MB, free: 3.367 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.04822, allocations: 267.4 kB / 369.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/0.04856, allocations: 360 kB / 369.7 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005301/0.05386, allocations: 5.28 MB / 375 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/0.05391, allocations: 11.94 kB / 375 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.05413, allocations: 140 kB / 375.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.05425, allocations: 183.1 kB / 375.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004659/0.05891, allocations: 4.291 MB / 379.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.07245, allocations: 13.4 MB / 393 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.07484, allocations: 2.689 MB / 395.7 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.07667, allocations: 1.87 MB / 397.6 MB, free: 6.465 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001674/0.07683, allocations: 53.95 kB / 397.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.07687, allocations: 60.56 kB / 397.7 MB, free: 6.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 3.196e-06/0.07687, allocations: 7.938 kB / 397.7 MB, free: 6.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.01124/0.08811, allocations: 9.609 MB / 407.3 MB, free: 12.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.08815, allocations: 73.41 kB / 407.4 MB, free: 12.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.09045, allocations: 2.533 MB / 409.9 MB, free: 10.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.656e-05/0.09055, allocations: 61.7 kB / 410 MB, free: 10.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000762/0.09131, allocations: 1.654 MB / 411.6 MB, free: 8.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003769/0.09169, allocations: 0.7592 MB / 412.4 MB, free: 7.578 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004311/0.09212, allocations: 412.5 kB / 412.8 MB, free: 7.168 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.09219, allocations: 301.1 kB / 413.1 MB, free: 6.871 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.09363, allocations: 1.301 MB / 414.4 MB, free: 5.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.09514, allocations: 1.778 MB / 416.2 MB, free: 3.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/0.09807, allocations: 3.208 MB / 419.4 MB, free: 216 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.09808, allocations: 4 kB / 419.4 MB, free: 212 kB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.004338/0.1024, allocations: 4.072 MB / 423.4 MB, free: 12.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1024, allocations: 12 kB / 423.5 MB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.1025, allocations: 12 kB / 423.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.104, allocations: 0.8838 MB / 424.3 MB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.1051, allocations: 0.5266 MB / 424.9 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006789/0.1118, allocations: 9.077 MB / 434 MB, free: 1.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.1129, allocations: 115.9 kB / 434.1 MB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.1131, allocations: 88 kB / 434.2 MB, free: 1.047 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001643/0.1147, allocations: 1.208 MB / 435.4 MB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.115, allocations: 290.2 kB / 435.6 MB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003831/0.1188, allocations: 3.703 MB / 439.3 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.1188, allocations: 23.94 kB / 439.4 MB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.1189, allocations: 12 kB / 439.4 MB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.1189, allocations: 7.969 kB / 439.4 MB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008084/0.127, allocations: 7.536 MB / 446.9 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.127, allocations: 4 kB / 446.9 MB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/0.1278, allocations: 387.8 kB / 447.3 MB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.1293, allocations: 0.9285 MB / 448.2 MB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.1294, allocations: 59.97 kB / 448.3 MB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1576/0.287, allocations: 10.56 MB / 458.9 MB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.287, allocations: 9.625 kB / 458.9 MB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004854/0.2919, allocations: 5.495 MB / 464.4 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007951/0.2927, allocations: 0.5759 MB / 464.9 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.2928, allocations: 57.2 kB / 465 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006815/0.2935, allocations: 121.8 kB / 465.1 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.2938, allocations: 186.5 kB / 465.3 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.2939, allocations: 60.59 kB / 465.3 MB, free: 111.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001425/0.2953, allocations: 1.732 MB / 467.1 MB, free: 109.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2953, allocations: 0 / 467.1 MB, free: 109.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001303/0.2966, allocations: 0.7996 MB / 467.9 MB, free: 108.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * 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 {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00457/0.3012, allocations: 6.189 MB / 474.1 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003061/0.3042, allocations: 3.614 MB / 477.7 MB, free: 99.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3042, allocations: 0 / 477.7 MB, free: 99.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.3061, allocations: 2.31 MB / 480 MB, free: 97.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.3078, allocations: 0.7914 MB / 480.8 MB, free: 96.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02755/0.3354, allocations: 29.61 MB / 0.4984 GB, free: 66.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.3366, allocations: 2.239 MB / 0.5006 GB, free: 64.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001116/0.3377, allocations: 0.6864 MB / 0.5013 GB, free: 63.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009596/0.3387, allocations: 1.418 MB / 0.5027 GB, free: 62.18 MB / 410.7 MB Notification: Performance of SimCode: time 6.62e-07/0.3387, allocations: 0 / 0.5027 GB, free: 62.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07791/0.4166, allocations: 78.06 MB / 0.5789 GB, free: 0.832 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.322/9.738, allocations: 7.672 kB / 0.5789 GB, free: 0.8281 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 15.789205741137266]