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.001581/0.001581, allocations: 105.5 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.001577/0.001577, allocations: 185 kB / 23.72 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.444/1.444, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.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 0.001627/0.001627, allocations: 51.91 kB / 370.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.316, allocations: 52.18 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01677/0.3328, allocations: 12.99 MB / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.3428, allocations: 4.213 MB / 439.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002562/0.3454, allocations: 99.31 kB / 440 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.3483, allocations: 1.006 MB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.3525, allocations: 1.255 MB / 442.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.3541, allocations: 0.511 MB / 442.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006971/0.361, allocations: 4.641 MB / 447.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003627/0.3647, allocations: 2.081 MB / 449.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005279/0.37, allocations: 2.172 MB / 451.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00529/0.3752, allocations: 2.627 MB / 454.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001516/0.3768, allocations: 0.5547 MB / 454.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.3787, allocations: 0.6366 MB / 455.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.3806, allocations: 1.539 MB / 457 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003689/0.3842, allocations: 2.485 MB / 459.5 MB, free: 9.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009002/0.3932, allocations: 7.443 MB / 466.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.3932, allocations: 0 / 466.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3932, allocations: 0 / 466.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001989/0.3934, allocations: 0 / 466.9 MB, free: 2.129 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01097/0.4044, allocations: 4.732 MB / 471.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.4045, allocations: 11.97 kB / 471.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001047/0.4055, allocations: 0.502 MB / 472.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.4071, allocations: 0.5137 MB / 472.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00568/0.4128, allocations: 2.524 MB / 475.2 MB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.413, allocations: 271 kB / 475.5 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008543/0.4139, allocations: 351.9 kB / 475.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.4244, allocations: 5.029 MB / 480.8 MB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.4246, allocations: 7.953 kB / 480.9 MB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006144/0.4252, allocations: 144 kB / 481 MB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002156/0.4254, allocations: 187 kB / 481.2 MB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008736/0.4341, allocations: 4.298 MB / 485.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.4624, allocations: 14.59 MB / 0.4883 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004686/0.4671, allocations: 2.706 MB / 0.491 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/0.4704, allocations: 1.874 MB / 0.4928 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.4707, allocations: 49.97 kB / 0.4929 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.795e-05/0.4708, allocations: 60.5 kB / 0.4929 GB, free: 11.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 6.171e-06/0.4708, allocations: 3.984 kB / 0.4929 GB, free: 11.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.0213/0.4921, allocations: 9.622 MB / 0.5023 GB, free: 2.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.4921, allocations: 73.41 kB / 0.5024 GB, free: 2.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004746/0.4969, allocations: 2.502 MB / 0.5048 GB, free: 15.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003312/0.4972, allocations: 61.7 kB / 0.5049 GB, free: 15.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.4987, allocations: 1.662 MB / 0.5065 GB, free: 13.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009049/0.4996, allocations: 0.7708 MB / 0.5073 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.5006, allocations: 420.5 kB / 0.5077 GB, free: 12.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.5007, allocations: 301.1 kB / 0.508 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002343/0.5031, allocations: 1.297 MB / 0.5092 GB, free: 11.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002664/0.5058, allocations: 1.774 MB / 0.511 GB, free: 9.062 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005229/0.511, allocations: 3.211 MB / 0.5141 GB, free: 5.672 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-05/0.511, allocations: 4 kB / 0.5141 GB, free: 5.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008048/0.519, allocations: 4.065 MB / 0.5181 GB, free: 1.578 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/0.5191, allocations: 19.19 kB / 0.5181 GB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.5191, allocations: 12 kB / 0.5181 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00296/0.5221, allocations: 0.8903 MB / 0.519 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.5244, allocations: 0.5266 MB / 0.5195 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.5364, allocations: 9.174 MB / 0.5284 GB, free: 6.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/0.5385, allocations: 115.9 kB / 0.5285 GB, free: 6.488 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003504/0.5388, allocations: 87.98 kB / 0.5286 GB, free: 6.402 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.002719/0.5415, allocations: 1.219 MB / 0.5298 GB, free: 5.172 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008647/0.5424, allocations: 290.2 kB / 0.5301 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007078/0.5495, allocations: 3.699 MB / 0.5337 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/0.5495, allocations: 20 kB / 0.5337 GB, free: 1.137 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/0.5495, allocations: 8 kB / 0.5337 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/0.5496, allocations: 15.95 kB / 0.5338 GB, free: 1.113 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2236/0.7731, allocations: 7.972 MB / 0.5415 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.7731, allocations: 5.984 kB / 0.5415 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.7746, allocations: 390.7 kB / 0.5419 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002664/0.7773, allocations: 0.9267 MB / 0.5428 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.7774, allocations: 55.33 kB / 0.5429 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008692/0.7861, allocations: 10.68 MB / 0.5533 GB, free: 96.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7861, allocations: 0 / 0.5533 GB, free: 96.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006979/0.7931, allocations: 5.513 MB / 0.5587 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/0.7948, allocations: 0.581 MB / 0.5593 GB, free: 92.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003507/0.7951, allocations: 48 kB / 0.5593 GB, free: 92.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.7964, allocations: 114.9 kB / 0.5594 GB, free: 92.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000345/0.7967, allocations: 189.6 kB / 0.5596 GB, free: 92.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.7968, allocations: 63.14 kB / 0.5596 GB, free: 91.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00211/0.7989, allocations: 1.731 MB / 0.5613 GB, free: 90.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7989, allocations: 0 / 0.5613 GB, free: 90.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002034/0.801, allocations: 0.7988 MB / 0.5621 GB, free: 89.45 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.006993/0.808, allocations: 6.187 MB / 0.5682 GB, free: 83.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004916/0.8129, allocations: 3.626 MB / 0.5717 GB, free: 79.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.8129, allocations: 0 / 0.5717 GB, free: 79.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002978/0.8159, allocations: 2.319 MB / 0.574 GB, free: 77.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003446/0.8193, allocations: 0.7904 MB / 0.5747 GB, free: 76.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04231/0.8616, allocations: 29.59 MB / 0.6036 GB, free: 46.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002732/0.8644, allocations: 2.777 MB / 0.6063 GB, free: 43.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001929/0.8663, allocations: 0.6866 MB / 0.607 GB, free: 42.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001637/0.8679, allocations: 1.409 MB / 0.6084 GB, free: 41.36 MB / 446.1 MB Notification: Performance of SimCode: time 1.093e-06/0.8679, allocations: 0 / 0.6084 GB, free: 41.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/1.004, allocations: 75.98 MB / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.21, allocations: 3.938 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB " [Timeout remaining time 642] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 26.80386031907983]