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.001366/0.001366, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001549/0.001549, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8.012 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 43.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 53.37 MB / 431.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.03375/0.2958, allocations: 28.76 MB / 459.9 MB, free: 9.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01561/0.3114, allocations: 7.233 MB / 467.1 MB, free: 2.723 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005862/0.3173, allocations: 310.4 kB / 467.5 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03009/0.3473, allocations: 13.25 MB / 480.7 MB, free: 5.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.3579, allocations: 2.633 MB / 483.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007097/0.365, allocations: 2.098 MB / 485.4 MB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02633/0.3913, allocations: 18.55 MB / 0.4922 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05695/0.4483, allocations: 28.4 MB / 0.5199 GB, free: 1.164 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01708/0.4654, allocations: 10.16 MB / 0.5298 GB, free: 6.992 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4842/0.9496, allocations: 11.14 MB / 0.5407 GB, free: 32.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008893/0.9585, allocations: 2.917 MB / 0.5436 GB, free: 32.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01157/0.97, allocations: 3.202 MB / 0.5467 GB, free: 32.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009375/0.9794, allocations: 5.486 MB / 0.552 GB, free: 32.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02176/1.001, allocations: 10.82 MB / 0.5626 GB, free: 29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03852/1.04, allocations: 39.1 MB / 0.6008 GB, free: 5.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/1.04, allocations: 0 / 0.6008 GB, free: 5.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.605e-06/1.04, allocations: 0 / 0.6008 GB, free: 5.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001138/1.041, allocations: 0 / 0.6008 GB, free: 5.488 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.06839/1.109, allocations: 22.25 MB / 0.6225 GB, free: 2.039 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/1.109, allocations: 8.031 kB / 0.6225 GB, free: 2.031 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01367/1.123, allocations: 2.964 MB / 0.6254 GB, free: 15.06 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04722/1.17, allocations: 8.243 MB / 0.6335 GB, free: 6.895 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0287/1.199, allocations: 11.89 MB / 0.6451 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001517/1.2, allocations: 1.341 MB / 0.6464 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008014/1.208, allocations: 1.757 MB / 0.6481 GB, free: 8.328 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08472/1.293, allocations: 28.77 MB / 0.6762 GB, free: 11.51 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007457/1.294, allocations: 19.89 kB / 0.6762 GB, free: 11.49 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00643/1.3, allocations: 0.7262 MB / 0.6769 GB, free: 10.78 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/1.301, allocations: 0.8454 MB / 0.6778 GB, free: 9.93 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05803/1.359, allocations: 24.84 MB / 0.702 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4433/1.803, allocations: 86 MB / 0.786 GB, free: 109.2 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02066/1.823, allocations: 12.86 MB / 0.7986 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008422/1.832, allocations: 5.037 MB / 0.8035 GB, free: 108.7 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007433/1.832, allocations: 172.7 kB / 0.8036 GB, free: 108.7 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/1.833, allocations: 96.2 kB / 0.8037 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=577): time 8.576e-06/1.833, allocations: 0 / 0.8037 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=577): time 0.03427/1.867, allocations: 14.7 MB / 0.8181 GB, free: 107 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/1.867, allocations: 137.4 kB / 0.8182 GB, free: 106.9 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009845/1.877, allocations: 6.423 MB / 0.8245 GB, free: 105.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007423/1.878, allocations: 122.9 kB / 0.8246 GB, free: 105.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003977/1.882, allocations: 7.899 MB / 0.8323 GB, free: 98.26 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001963/1.883, allocations: 2.11 MB / 0.8344 GB, free: 96.45 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003814/1.887, allocations: 2.112 MB / 0.8364 GB, free: 95.24 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.96e-05/1.887, allocations: 316.4 kB / 0.8367 GB, free: 94.94 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006074/1.893, allocations: 4.745 MB / 0.8414 GB, free: 92.41 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008305/1.902, allocations: 9.467 MB / 0.8506 GB, free: 83.48 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01698/1.919, allocations: 15.33 MB / 0.8656 GB, free: 68.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001997/1.919, allocations: 47.94 kB / 0.8656 GB, free: 68.55 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02724/1.946, allocations: 15.41 MB / 0.8807 GB, free: 54.05 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002751/1.946, allocations: 72 kB / 0.8808 GB, free: 53.98 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003653/1.947, allocations: 160 kB / 0.8809 GB, free: 53.82 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005478/1.952, allocations: 1.657 MB / 0.8825 GB, free: 52.16 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008042/1.96, allocations: 2.363 MB / 0.8848 GB, free: 49.98 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/1.975, allocations: 11.52 MB / 0.8961 GB, free: 38.44 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00802/1.983, allocations: 1.372 MB / 0.8974 GB, free: 37.06 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001841/1.984, allocations: 0.539 MB / 0.898 GB, free: 36.52 MB / 0.5763 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 prepare postOptimizeDAE: time 0.01342/1.998, allocations: 7.156 MB / 0.905 GB, free: 29.53 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/2, allocations: 0.6403 MB / 0.9056 GB, free: 28.89 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01518/2.015, allocations: 10.07 MB / 0.9154 GB, free: 18.75 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009685/2.024, allocations: 7.769 MB / 0.923 GB, free: 10.93 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.411e-05/2.025, allocations: 12 kB / 0.923 GB, free: 10.92 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.515e-05/2.025, allocations: 31.88 kB / 0.923 GB, free: 10.89 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0615/2.086, allocations: 25.37 MB / 0.9478 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-05/2.086, allocations: 12.06 kB / 0.9478 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004735/2.091, allocations: 1.021 MB / 0.9488 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005817/2.097, allocations: 1.465 MB / 0.9503 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/2.098, allocations: 135.8 kB / 0.9504 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01779/2.116, allocations: 11.05 MB / 0.9612 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/2.116, allocations: 11.75 kB / 0.9612 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0266/2.142, allocations: 14.14 MB / 0.975 GB, free: 5.391 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004433/2.147, allocations: 1.446 MB / 0.9764 GB, free: 3.941 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001515/2.148, allocations: 104 kB / 0.9765 GB, free: 3.84 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003437/2.152, allocations: 327.2 kB / 0.9768 GB, free: 3.523 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008962/2.152, allocations: 424 kB / 0.9772 GB, free: 3.109 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003766/2.153, allocations: 176 kB / 0.9774 GB, free: 2.938 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.2553/2.408, allocations: 4.304 MB / 0.9816 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.91e-07/2.408, allocations: 0 / 0.9816 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01372/2.422, allocations: 4.092 MB / 0.9856 GB, free: 217.1 MB / 0.6232 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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01899/2.441, allocations: 14.92 MB / 1 GB, free: 212.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01617/2.457, allocations: 10.96 MB / 1.011 GB, free: 208.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/2.457, allocations: 0 / 1.011 GB, free: 208.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.005987/2.463, allocations: 4.345 MB / 1.015 GB, free: 206.9 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006973/2.47, allocations: 1.562 MB / 1.017 GB, free: 206.4 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1432/2.613, allocations: 94.77 MB / 1.109 GB, free: 123.5 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01681/2.63, allocations: 11.26 MB / 1.12 GB, free: 112.2 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.008871/2.639, allocations: 3.77 MB / 1.124 GB, free: 108.4 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008775/2.648, allocations: 5.947 MB / 1.13 GB, free: 102.5 MB / 0.6232 GB Notification: Performance of SimCode: time 1.923e-06/2.648, allocations: 0 / 1.13 GB, free: 102.5 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5168/3.164, allocations: 212.8 MB / 1.337 GB, free: 152.1 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.12/32.29, allocations: 13.41 kB / 1.337 GB, free: 152.1 MB / 0.6232 GB " [Timeout remaining time 628] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable source.plug_p.reference.gamma in file Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv. Warning: Get data of variable source.plug_p.reference.gamma from file Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 34.97150398500162]