Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 97.22 kB / 16.5 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 193.4 kB / 17.42 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 43.44 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08208/0.08318, allocations: 49.45 MB / 349.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1754/0.2586, allocations: 28.03 MB / 377.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.2712, allocations: 7.056 MB / 384.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005479/0.2767, allocations: 254 kB / 384.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02438/0.3011, allocations: 12.45 MB / 397.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009212/0.3103, allocations: 2.403 MB / 399.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005243/0.3156, allocations: 1.715 MB / 401.4 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01758/0.3332, allocations: 17.41 MB / 418.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06514/0.3984, allocations: 37.21 MB / 456 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01644/0.4148, allocations: 8.726 MB / 464.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01692/0.4318, allocations: 10.65 MB / 475.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006299/0.4381, allocations: 2.074 MB / 477.5 MB, free: 5.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008067/0.4462, allocations: 2.32 MB / 479.8 MB, free: 3.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007133/0.4534, allocations: 4.608 MB / 484.4 MB, free: 14.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01957/0.4729, allocations: 9.928 MB / 494.3 MB, free: 4.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3824/0.8553, allocations: 38.24 MB / 0.5201 GB, free: 68.72 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.8554, allocations: 0 / 0.5201 GB, free: 68.72 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.8554, allocations: 0 / 0.5201 GB, free: 68.72 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001047/0.8565, allocations: 0.8125 kB / 0.5201 GB, free: 68.72 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.06518/0.9216, allocations: 22.04 MB / 0.5416 GB, free: 63.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.9217, allocations: 9.625 kB / 0.5416 GB, free: 63.71 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01048/0.9322, allocations: 2.96 MB / 0.5445 GB, free: 63.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04427/0.9765, allocations: 8.327 MB / 0.5527 GB, free: 60.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02211/0.9986, allocations: 11.27 MB / 0.5637 GB, free: 52.94 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001073/0.9997, allocations: 1.332 MB / 0.565 GB, free: 51.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006825/1.007, allocations: 1.753 MB / 0.5667 GB, free: 49.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06821/1.075, allocations: 28.77 MB / 0.5948 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007377/1.076, allocations: 23.8 kB / 0.5948 GB, free: 21.03 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006873/1.082, allocations: 0.7219 MB / 0.5955 GB, free: 20.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007412/1.083, allocations: 0.8649 MB / 0.5964 GB, free: 19.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05031/1.134, allocations: 24.84 MB / 0.6206 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1608/1.294, allocations: 88.01 MB / 0.7066 GB, free: 2.246 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2311/1.526, allocations: 35.19 MB / 0.7409 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0083/1.534, allocations: 5.377 MB / 0.7462 GB, free: 155.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006768/1.535, allocations: 207.3 kB / 0.7464 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.588e-05/1.535, allocations: 100.9 kB / 0.7465 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=589): time 8.416e-06/1.535, allocations: 0 / 0.7465 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=589): time 0.03294/1.568, allocations: 14.8 MB / 0.7609 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/1.568, allocations: 144.8 kB / 0.7611 GB, free: 150.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01107/1.579, allocations: 6.419 MB / 0.7673 GB, free: 148.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009868/1.58, allocations: 124.3 kB / 0.7674 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003632/1.584, allocations: 7.6 MB / 0.7749 GB, free: 142.7 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002154/1.586, allocations: 2.049 MB / 0.7769 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004489/1.59, allocations: 2.1 MB / 0.7789 GB, free: 140.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.083e-05/1.59, allocations: 304.9 kB / 0.7792 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006147/1.596, allocations: 4.806 MB / 0.7839 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007831/1.604, allocations: 9.546 MB / 0.7932 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/1.618, allocations: 15.46 MB / 0.8083 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.619, allocations: 48 kB / 0.8084 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02261/1.641, allocations: 15.54 MB / 0.8235 GB, free: 97.5 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.709e-05/1.641, allocations: 75.94 kB / 0.8236 GB, free: 97.42 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000174/1.642, allocations: 160 kB / 0.8238 GB, free: 97.27 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005014/1.647, allocations: 1.668 MB / 0.8254 GB, free: 95.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007281/1.654, allocations: 2.358 MB / 0.8277 GB, free: 93.24 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/1.666, allocations: 10.84 MB / 0.8383 GB, free: 82.27 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008971/1.675, allocations: 1.354 MB / 0.8396 GB, free: 80.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.676, allocations: 0.5273 MB / 0.8401 GB, free: 80.37 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009713/1.686, allocations: 7.141 MB / 0.8471 GB, free: 73.21 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/1.687, allocations: 0.6133 MB / 0.8477 GB, free: 72.59 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/1.7, allocations: 10.3 MB / 0.8578 GB, free: 62.19 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009002/1.709, allocations: 7.924 MB / 0.8655 GB, free: 54.18 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.709, allocations: 15.98 kB / 0.8655 GB, free: 54.16 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.9e-05/1.709, allocations: 27.89 kB / 0.8655 GB, free: 54.14 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03521/1.744, allocations: 26.25 MB / 0.8912 GB, free: 27.44 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/1.744, allocations: 8 kB / 0.8912 GB, free: 27.43 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003437/1.748, allocations: 1.014 MB / 0.8922 GB, free: 26.42 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004483/1.752, allocations: 1.462 MB / 0.8936 GB, free: 24.95 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004553/1.753, allocations: 124 kB / 0.8937 GB, free: 24.83 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/1.764, allocations: 10.41 MB / 0.9039 GB, free: 14.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.764, allocations: 15.94 kB / 0.9039 GB, free: 14.28 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2038/1.967, allocations: 14.37 MB / 0.9179 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004325/1.972, allocations: 1.455 MB / 0.9194 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002542/1.974, allocations: 108.9 kB / 0.9195 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004544/1.979, allocations: 324.4 kB / 0.9198 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/1.98, allocations: 405.1 kB / 0.9202 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007876/1.981, allocations: 169.8 kB / 0.9203 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00925/1.99, allocations: 4.307 MB / 0.9245 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.11e-07/1.99, allocations: 1.219 kB / 0.9245 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01409/2.005, allocations: 4.039 MB / 0.9285 GB, free: 164.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_p.reference.gamma) * 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02413/2.029, allocations: 15.18 MB / 0.9433 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01826/2.047, allocations: 11.5 MB / 0.9545 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/2.047, allocations: 0 / 0.9545 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008785/2.056, allocations: 4.735 MB / 0.9591 GB, free: 153.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01178/2.068, allocations: 1.478 MB / 0.9606 GB, free: 152.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2083/2.276, allocations: 121 MB / 1.079 GB, free: 36.7 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02087/2.297, allocations: 11.26 MB / 1.09 GB, free: 25.38 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01178/2.309, allocations: 3.763 MB / 1.093 GB, free: 21.61 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0103/2.319, allocations: 5.881 MB / 1.099 GB, free: 15.73 MB / 0.5138 GB Notification: Performance of SimCode: time 1.212e-06/2.319, allocations: 4 kB / 1.099 GB, free: 15.72 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6196/2.939, allocations: 205.9 MB / 1.3 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/2.939, allocations: 291.7 kB / 1.301 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.985/8.924, allocations: 0.75 kB / 1.301 GB, free: 110.2 MB / 0.5138 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches