Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.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.0008943/0.0008943, 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.0008429/0.0008429, allocations: 153 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.8536/0.8536, allocations: 173.4 MB / 200.5 MB, free: 9.457 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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.77e-05/1.936e-05, allocations: 5.516 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.008542/0.008561, allocations: 11.3 MB / 329.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.01363, allocations: 3.984 MB / 333.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008118/0.01444, allocations: 103.3 kB / 333.9 MB, free: 6.875 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.01581, allocations: 0.9663 MB / 334.8 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.01749, allocations: 1.285 MB / 336.1 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000629/0.01812, allocations: 0.5225 MB / 336.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002703/0.02083, allocations: 4.794 MB / 341.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.02249, allocations: 2.015 MB / 343.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002508/0.025, allocations: 3.154 MB / 346.6 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.02686, allocations: 2.287 MB / 348.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004224/0.02728, allocations: 0.5547 MB / 349.4 MB, free: 7.191 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006493/0.02793, allocations: 0.6443 MB / 350.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009111/0.02884, allocations: 1.57 MB / 351.7 MB, free: 4.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.03007, allocations: 1.723 MB / 353.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004464/0.03453, allocations: 7.537 MB / 360.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.03454, allocations: 4 kB / 360.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.03454, allocations: 0 / 360.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.077e-05/0.03459, allocations: 0 / 360.9 MB, free: 11.68 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.004913/0.0395, allocations: 4.692 MB / 365.6 MB, free: 6.941 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.03954, allocations: 8.922 kB / 365.6 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004377/0.03998, allocations: 0.4942 MB / 366.1 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006954/0.04067, allocations: 0.5214 MB / 366.6 MB, free: 5.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.04331, allocations: 2.52 MB / 369.2 MB, free: 3.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.04344, allocations: 267.4 kB / 369.4 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003275/0.04377, allocations: 356 kB / 369.8 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004971/0.04874, allocations: 5.28 MB / 375 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-05/0.0488, allocations: 15.94 kB / 375.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.04903, allocations: 140 kB / 375.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.04914, allocations: 183 kB / 375.4 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004454/0.05359, allocations: 4.287 MB / 379.7 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.06643, allocations: 13.4 MB / 393.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.06892, allocations: 2.696 MB / 395.8 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.07079, allocations: 1.87 MB / 397.6 MB, free: 6.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000165/0.07096, allocations: 49.97 kB / 397.7 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.07099, allocations: 56.56 kB / 397.7 MB, free: 6.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 3.306e-06/0.07099, allocations: 0 / 397.7 MB, free: 6.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.01103/0.08202, allocations: 9.617 MB / 407.4 MB, free: 12.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.08206, allocations: 73.41 kB / 407.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/0.08427, allocations: 2.525 MB / 410 MB, free: 10.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.576e-05/0.08437, allocations: 65.7 kB / 410 MB, free: 9.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007566/0.08513, allocations: 1.654 MB / 411.7 MB, free: 8.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/0.0855, allocations: 0.7553 MB / 412.4 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004375/0.08594, allocations: 420.4 kB / 412.8 MB, free: 7.141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.749e-05/0.08601, allocations: 301.1 kB / 413.1 MB, free: 6.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.08738, allocations: 1.297 MB / 414.4 MB, free: 5.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.08901, allocations: 1.782 MB / 416.2 MB, free: 3.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/0.09189, allocations: 3.208 MB / 419.4 MB, free: 188 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002629/0.09215, allocations: 4 kB / 419.4 MB, free: 184 kB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.004201/0.09635, allocations: 4.072 MB / 423.5 MB, free: 12.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.09637, allocations: 12 kB / 423.5 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.09639, allocations: 15.98 kB / 423.5 MB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.09784, allocations: 0.8799 MB / 424.4 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.09889, allocations: 0.5266 MB / 424.9 MB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006996/0.1059, allocations: 9.082 MB / 434 MB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.1069, allocations: 111.9 kB / 434.1 MB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.107, allocations: 87.98 kB / 434.2 MB, free: 1.02 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.001557/0.1086, allocations: 1.215 MB / 435.4 MB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003073/0.1089, allocations: 286.2 kB / 435.7 MB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003964/0.1128, allocations: 3.699 MB / 439.4 MB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.1128, allocations: 23.94 kB / 439.4 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1128, allocations: 8 kB / 439.4 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.1129, allocations: 11.95 kB / 439.4 MB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00836/0.1212, allocations: 7.536 MB / 447 MB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1212, allocations: 4 kB / 447 MB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008541/0.1221, allocations: 383.4 kB / 447.4 MB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001774/0.1239, allocations: 0.933 MB / 448.3 MB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.124, allocations: 51.98 kB / 448.3 MB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1371/0.2611, allocations: 10.57 MB / 458.9 MB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.2611, allocations: 3.719 kB / 458.9 MB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005552/0.2667, allocations: 5.501 MB / 464.4 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.2678, allocations: 0.5747 MB / 465 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.268, allocations: 58.91 kB / 465 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007155/0.2687, allocations: 121.1 kB / 465.2 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.269, allocations: 187.9 kB / 465.3 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.393e-05/0.2691, allocations: 58.48 kB / 465.4 MB, free: 111.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001523/0.2707, allocations: 1.728 MB / 467.1 MB, free: 109.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2707, allocations: 4 kB / 467.1 MB, free: 109.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001495/0.2722, allocations: 0.7957 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.004911/0.2771, allocations: 6.195 MB / 474.1 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.2804, allocations: 3.621 MB / 477.7 MB, free: 99.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2804, allocations: 4 kB / 477.7 MB, free: 99.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.2822, allocations: 2.303 MB / 480.1 MB, free: 97.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/0.2844, allocations: 0.7828 MB / 480.8 MB, free: 96.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03128/0.3157, allocations: 29.61 MB / 0.4985 GB, free: 66.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/0.3171, allocations: 2.243 MB / 0.5007 GB, free: 64.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001434/0.3186, allocations: 0.6879 MB / 0.5013 GB, free: 63.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/0.3196, allocations: 1.41 MB / 0.5027 GB, free: 62.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3196, allocations: 0 / 0.5027 GB, free: 62.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07945/0.3991, allocations: 78.06 MB / 0.5789 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.487/9.886, allocations: 7.703 kB / 0.579 GB, free: 0.8594 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.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.830815628170967]