Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.001264/0.001264, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001449/0.001449, allocations: 207.8 kB / 23.73 MB, free: 4.523 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.365/1.365, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 47.92 kB / 377.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2731, allocations: 53.35 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01416/0.2873, allocations: 11.34 MB / 442.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007876/0.2952, allocations: 4.035 MB / 446.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.2962, allocations: 103.3 kB / 446.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.2984, allocations: 0.9627 MB / 447.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002863/0.3013, allocations: 1.247 MB / 448.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.3023, allocations: 0.5305 MB / 449.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005/0.3073, allocations: 4.66 MB / 454 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002737/0.3101, allocations: 2.081 MB / 456.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.3137, allocations: 2.187 MB / 458.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003567/0.3172, allocations: 2.623 MB / 460.9 MB, free: 8.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007239/0.318, allocations: 0.5586 MB / 461.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.3191, allocations: 0.6522 MB / 462.1 MB, free: 7.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001482/0.3206, allocations: 1.535 MB / 463.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00237/0.323, allocations: 2.015 MB / 465.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007679/0.3306, allocations: 7.506 MB / 473.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3306, allocations: 0 / 473.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3306, allocations: 0 / 473.2 MB, free: 12.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001534/0.3308, allocations: 0 / 473.2 MB, free: 12.42 MB / 382.1 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.009513/0.3403, allocations: 4.751 MB / 477.9 MB, free: 7.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.3404, allocations: 8.031 kB / 477.9 MB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007186/0.3411, allocations: 0.4981 MB / 478.4 MB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.3427, allocations: 0.5526 MB / 479 MB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005734/0.3485, allocations: 2.544 MB / 481.5 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002791/0.3487, allocations: 267 kB / 481.8 MB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007533/0.3495, allocations: 355.9 kB / 482.1 MB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00948/0.359, allocations: 5.287 MB / 487.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.908e-05/0.3591, allocations: 3.953 kB / 487.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003437/0.3594, allocations: 144 kB / 487.5 MB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002028/0.3596, allocations: 183 kB / 487.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007643/0.3672, allocations: 4.291 MB / 492 MB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02434/0.3916, allocations: 13.4 MB / 0.4936 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004112/0.3957, allocations: 2.699 MB / 0.4962 GB, free: 8.891 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003362/0.3991, allocations: 1.862 MB / 0.498 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/0.3993, allocations: 57.97 kB / 0.4981 GB, free: 6.969 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.3994, allocations: 56.56 kB / 0.4981 GB, free: 6.906 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 4.629e-06/0.3994, allocations: 0 / 0.4981 GB, free: 6.906 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02115/0.4205, allocations: 9.619 MB / 0.5075 GB, free: 13.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.4206, allocations: 73.41 kB / 0.5076 GB, free: 13.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003953/0.4245, allocations: 2.541 MB / 0.5101 GB, free: 10.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002035/0.4247, allocations: 65.7 kB / 0.5101 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001398/0.4261, allocations: 1.658 MB / 0.5118 GB, free: 8.879 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000749/0.4269, allocations: 0.7708 MB / 0.5125 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000722/0.4276, allocations: 416.5 kB / 0.5129 GB, free: 7.688 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4277, allocations: 309.1 kB / 0.5132 GB, free: 7.383 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.4299, allocations: 1.301 MB / 0.5145 GB, free: 6.078 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/0.4325, allocations: 1.774 MB / 0.5162 GB, free: 4.117 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004909/0.4374, allocations: 3.211 MB / 0.5193 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.4375, allocations: 7.938 kB / 0.5193 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007524/0.445, allocations: 4.073 MB / 0.5233 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.445, allocations: 12 kB / 0.5233 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.445, allocations: 12.47 kB / 0.5233 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003076/0.4481, allocations: 0.8756 MB / 0.5242 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.4504, allocations: 0.5304 MB / 0.5247 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.462, allocations: 9.086 MB / 0.5336 GB, free: 1.746 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.4641, allocations: 123.9 kB / 0.5337 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/0.4644, allocations: 84 kB / 0.5338 GB, free: 1.543 MB / 446.1 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.00244/0.4669, allocations: 1.212 MB / 0.535 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008232/0.4677, allocations: 294.1 kB / 0.5353 GB, free: 32 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1995/0.6671, allocations: 3.694 MB / 0.5389 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.6672, allocations: 24.12 kB / 0.5389 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.6672, allocations: 7.859 kB / 0.5389 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.6672, allocations: 10.89 kB / 0.5389 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.6789, allocations: 7.548 MB / 0.5463 GB, free: 97.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.6789, allocations: 3.656 kB / 0.5463 GB, free: 97.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.6804, allocations: 382.2 kB / 0.5466 GB, free: 97.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002732/0.6832, allocations: 0.9287 MB / 0.5476 GB, free: 96.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.6833, allocations: 53.89 kB / 0.5476 GB, free: 96.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008056/0.6914, allocations: 10.58 MB / 0.5579 GB, free: 86.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6914, allocations: 3.938 kB / 0.5579 GB, free: 86.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006445/0.6978, allocations: 5.511 MB / 0.5633 GB, free: 81.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/0.6993, allocations: 0.5859 MB / 0.5639 GB, free: 81.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003693/0.6997, allocations: 51.98 kB / 0.5639 GB, free: 81.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.7009, allocations: 111.9 kB / 0.5641 GB, free: 80.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003416/0.7013, allocations: 181.6 kB / 0.5642 GB, free: 80.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.7014, allocations: 67.92 kB / 0.5643 GB, free: 80.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001838/0.7032, allocations: 1.739 MB / 0.566 GB, free: 78.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7032, allocations: 0 / 0.566 GB, free: 78.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001848/0.7051, allocations: 0.7978 MB / 0.5668 GB, free: 78.12 MB / 446.1 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.006654/0.7118, allocations: 6.207 MB / 0.5728 GB, free: 72.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0045/0.7163, allocations: 3.617 MB / 0.5764 GB, free: 68.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.7163, allocations: 0 / 0.5764 GB, free: 68.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00283/0.7191, allocations: 2.316 MB / 0.5786 GB, free: 66.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002997/0.7221, allocations: 0.7984 MB / 0.5794 GB, free: 65.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03402/0.7561, allocations: 29.64 MB / 0.6084 GB, free: 34.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001841/0.7579, allocations: 2.236 MB / 0.6105 GB, free: 32.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00172/0.7597, allocations: 0.679 MB / 0.6112 GB, free: 31.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/0.7611, allocations: 1.417 MB / 0.6126 GB, free: 30.52 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7611, allocations: 3.172 kB / 0.6126 GB, free: 30.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1668/0.9279, allocations: 79.34 MB / 0.6901 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/15.28, allocations: 7.922 kB / 0.6901 GB, free: 15.96 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 24.249597355985316]