Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.002216/0.002216, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.002165/0.002165, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 51.92 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.249, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.03186/0.2808, allocations: 28.76 MB / 460.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.2968, allocations: 7.222 MB / 467.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006238/0.303, allocations: 318.4 kB / 468.2 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02863/0.3316, allocations: 13.26 MB / 481.5 MB, free: 5.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.3421, allocations: 2.641 MB / 484.1 MB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007005/0.3491, allocations: 2.089 MB / 486.2 MB, free: 396 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02429/0.3734, allocations: 18.55 MB / 0.4929 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05672/0.4301, allocations: 28.4 MB / 0.5207 GB, free: 1.152 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01685/0.4469, allocations: 10.16 MB / 0.5306 GB, free: 6.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4076/0.8545, allocations: 11.14 MB / 0.5415 GB, free: 32.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008361/0.8629, allocations: 2.918 MB / 0.5443 GB, free: 32.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01029/0.8732, allocations: 3.199 MB / 0.5474 GB, free: 32.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008351/0.8815, allocations: 5.488 MB / 0.5528 GB, free: 32.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01808/0.8996, allocations: 10.83 MB / 0.5634 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0339/0.9335, allocations: 39.1 MB / 0.6015 GB, free: 5.422 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.9335, allocations: 0 / 0.6015 GB, free: 5.422 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.9335, allocations: 0 / 0.6015 GB, free: 5.422 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001103/0.9346, allocations: 0 / 0.6015 GB, free: 5.422 MB / 446.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.06313/0.9978, allocations: 22.25 MB / 0.6233 GB, free: 1.93 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.9978, allocations: 8.031 kB / 0.6233 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0005928/0.9984, allocations: 0.53 MB / 0.6238 GB, free: 1.387 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01152/1.01, allocations: 2.971 MB / 0.6267 GB, free: 14.42 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04536/1.055, allocations: 8.242 MB / 0.6347 GB, free: 6.242 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02797/1.083, allocations: 11.89 MB / 0.6464 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001476/1.085, allocations: 1.345 MB / 0.6477 GB, free: 9.418 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007363/1.092, allocations: 1.762 MB / 0.6494 GB, free: 7.668 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07584/1.168, allocations: 28.78 MB / 0.6775 GB, free: 10.84 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008184/1.169, allocations: 19.91 kB / 0.6775 GB, free: 10.82 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007416/1.176, allocations: 0.7352 MB / 0.6782 GB, free: 10.1 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001039/1.177, allocations: 0.8415 MB / 0.6791 GB, free: 9.258 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05869/1.236, allocations: 24.85 MB / 0.7033 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3939/1.63, allocations: 86.02 MB / 0.7873 GB, free: 111 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01767/1.647, allocations: 12.87 MB / 0.7999 GB, free: 110.7 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006916/1.654, allocations: 5.054 MB / 0.8048 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004693/1.655, allocations: 175 kB / 0.805 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.108e-05/1.655, allocations: 100.5 kB / 0.8051 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=585): time 7.765e-06/1.655, allocations: 0 / 0.8051 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=681): time 0.06375/1.719, allocations: 34.14 MB / 0.8384 GB, free: 98.02 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.293e-05/1.719, allocations: 154.1 kB / 0.8386 GB, free: 97.91 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008044/1.727, allocations: 6.419 MB / 0.8449 GB, free: 94.21 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.000985/1.728, allocations: 136.4 kB / 0.845 GB, free: 94.07 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003094/1.731, allocations: 7.905 MB / 0.8527 GB, free: 86.16 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001998/1.733, allocations: 2.46 MB / 0.8551 GB, free: 83.73 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002845/1.736, allocations: 2.239 MB / 0.8573 GB, free: 81.48 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.461e-05/1.736, allocations: 301.1 kB / 0.8576 GB, free: 81.19 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005732/1.741, allocations: 5.3 MB / 0.8628 GB, free: 75.88 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007992/1.749, allocations: 10.08 MB / 0.8726 GB, free: 63.65 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/1.764, allocations: 16.62 MB / 0.8888 GB, free: 45.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-05/1.764, allocations: 44 kB / 0.8889 GB, free: 45.36 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.0245/1.789, allocations: 17.52 MB / 0.906 GB, free: 28.79 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001777/1.789, allocations: 72 kB / 0.9061 GB, free: 28.72 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/1.789, allocations: 160.6 kB / 0.9062 GB, free: 28.56 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00927/1.798, allocations: 3.118 MB / 0.9092 GB, free: 25.44 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007749/1.806, allocations: 2.403 MB / 0.9116 GB, free: 23.21 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02379/1.83, allocations: 23.23 MB / 0.9343 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007717/1.838, allocations: 0.6629 MB / 0.9349 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001768/1.84, allocations: 0.5585 MB / 0.9355 GB, free: 14.66 MB / 0.5919 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 (1262): * Single equations (assignments): 1258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,80,80.6%), (6,80,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01449/1.854, allocations: 7.277 MB / 0.9426 GB, free: 7.547 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001505/1.856, allocations: 0.6714 MB / 0.9432 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02156/1.877, allocations: 12.42 MB / 0.9554 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01668/1.894, allocations: 9.855 MB / 0.965 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-05/1.894, allocations: 24 kB / 0.965 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.205e-05/1.894, allocations: 35.88 kB / 0.965 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2856/2.179, allocations: 30.19 MB / 0.9945 GB, free: 215.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.407e-05/2.179, allocations: 11.78 kB / 0.9945 GB, free: 215.6 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003664/2.183, allocations: 1.069 MB / 0.9956 GB, free: 215.5 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008752/2.192, allocations: 2.87 MB / 0.9984 GB, free: 214.9 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008475/2.193, allocations: 152 kB / 0.9985 GB, free: 214.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/2.216, allocations: 21.52 MB / 1.02 GB, free: 203.5 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/2.216, allocations: 19.73 kB / 1.02 GB, free: 203.5 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01985/2.236, allocations: 17.26 MB / 1.036 GB, free: 196.1 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003597/2.24, allocations: 1.528 MB / 1.038 GB, free: 195.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/2.241, allocations: 129.7 kB / 1.038 GB, free: 195.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/2.244, allocations: 342.5 kB / 1.038 GB, free: 195.6 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.245, allocations: 0.5156 MB / 1.039 GB, free: 195.5 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003734/2.245, allocations: 205 kB / 1.039 GB, free: 195.4 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.006615/2.252, allocations: 4.304 MB / 1.043 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of sort global known variables: time 9e-08/2.252, allocations: 0 / 1.043 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01039/2.262, allocations: 2.949 MB / 1.046 GB, free: 191 MB / 0.6232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (553): * Single equations (assignments): 549 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,80,75.0%), (6,74,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02036/2.283, allocations: 18.07 MB / 1.064 GB, free: 175.3 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01686/2.299, allocations: 13 MB / 1.076 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.788e-05/2.299, allocations: 3.844 kB / 1.076 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.007828/2.307, allocations: 5.737 MB / 1.082 GB, free: 156.9 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01015/2.317, allocations: 1.595 MB / 1.084 GB, free: 155.3 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1426/2.46, allocations: 101.9 MB / 1.183 GB, free: 46.43 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0161/2.476, allocations: 11.52 MB / 1.194 GB, free: 34.87 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.008483/2.485, allocations: 3.805 MB / 1.198 GB, free: 31.06 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009707/2.494, allocations: 6.002 MB / 1.204 GB, free: 25.05 MB / 0.6232 GB Notification: Performance of SimCode: time 1.784e-06/2.494, allocations: 0 / 1.204 GB, free: 25.05 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5233/3.018, allocations: 231.8 MB / 1.43 GB, free: 61.77 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.2/50.21, allocations: 7.188 kB / 1.43 GB, free: 61.77 MB / 0.6232 GB " [Timeout remaining time 610] (rm -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 53.35598266700981]