Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001118/0.001123, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2608, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02724/0.2881, allocations: 28.61 MB / 437.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.3024, allocations: 7.195 MB / 444.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006209/0.3087, allocations: 263.2 kB / 444.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02815/0.3369, allocations: 13.15 MB / 458 MB, free: 156 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.3477, allocations: 2.551 MB / 460.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0062/0.3539, allocations: 2.031 MB / 462.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02158/0.3755, allocations: 18.28 MB / 480.8 MB, free: 9.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06927/0.4448, allocations: 44.45 MB / 0.513 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01602/0.4609, allocations: 9.952 MB / 0.5227 GB, free: 2.586 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01614/0.4771, allocations: 11.06 MB / 0.5335 GB, free: 7.488 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007351/0.4845, allocations: 2.918 MB / 0.5363 GB, free: 4.57 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009736/0.4942, allocations: 3.203 MB / 0.5395 GB, free: 1.367 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4686/0.9628, allocations: 5.471 MB / 0.5448 GB, free: 59.78 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02272/0.9856, allocations: 10.82 MB / 0.5554 GB, free: 58.92 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04392/1.03, allocations: 39.1 MB / 0.5936 GB, free: 38.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.225e-05/1.03, allocations: 0.8125 kB / 0.5936 GB, free: 38.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.575e-06/1.03, allocations: 0 / 0.5936 GB, free: 38.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001256/1.031, allocations: 0 / 0.5936 GB, free: 38.36 MB / 462.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.07198/1.103, allocations: 22.32 MB / 0.6154 GB, free: 24.41 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/1.103, allocations: 10.31 kB / 0.6154 GB, free: 24.41 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01526/1.118, allocations: 2.965 MB / 0.6183 GB, free: 21.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/1.164, allocations: 8.438 MB / 0.6265 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02757/1.192, allocations: 11.65 MB / 0.6379 GB, free: 2.223 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001386/1.193, allocations: 1.346 MB / 0.6392 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008261/1.201, allocations: 1.755 MB / 0.6409 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08144/1.283, allocations: 28.73 MB / 0.669 GB, free: 2.371 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008262/1.284, allocations: 15.91 kB / 0.669 GB, free: 2.355 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006124/1.29, allocations: 0.7235 MB / 0.6697 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008868/1.291, allocations: 0.8493 MB / 0.6705 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0573/1.348, allocations: 24.79 MB / 0.6947 GB, free: 7.984 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4625/1.811, allocations: 87.52 MB / 0.7802 GB, free: 105.5 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02383/1.834, allocations: 35.13 MB / 0.8145 GB, free: 78.03 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007951/1.842, allocations: 5.434 MB / 0.8198 GB, free: 77.93 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005631/1.843, allocations: 285.7 kB / 0.8201 GB, free: 77.74 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.617e-05/1.843, allocations: 98.64 kB / 0.8202 GB, free: 77.69 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 8.707e-06/1.843, allocations: 0 / 0.8202 GB, free: 77.69 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03224/1.875, allocations: 14.76 MB / 0.8346 GB, free: 76.89 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/1.875, allocations: 138.7 kB / 0.8347 GB, free: 76.78 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009741/1.885, allocations: 6.433 MB / 0.841 GB, free: 75.32 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009855/1.886, allocations: 120.2 kB / 0.8411 GB, free: 75.29 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004063/1.89, allocations: 7.896 MB / 0.8488 GB, free: 69.74 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002121/1.892, allocations: 2.113 MB / 0.8509 GB, free: 68.23 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003555/1.896, allocations: 2.095 MB / 0.8529 GB, free: 67.88 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.022e-05/1.896, allocations: 305.1 kB / 0.8532 GB, free: 67.58 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006583/1.903, allocations: 4.739 MB / 0.8579 GB, free: 66.04 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01033/1.913, allocations: 9.465 MB / 0.8671 GB, free: 54.69 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01681/1.93, allocations: 15.3 MB / 0.8821 GB, free: 37.74 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001607/1.93, allocations: 44 kB / 0.8821 GB, free: 37.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02572/1.956, allocations: 15.4 MB / 0.8971 GB, free: 23.2 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/1.956, allocations: 80.22 kB / 0.8972 GB, free: 23.12 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002821/1.956, allocations: 164 kB / 0.8974 GB, free: 22.96 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005008/1.961, allocations: 1.66 MB / 0.899 GB, free: 21.29 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008279/1.97, allocations: 2.344 MB / 0.9013 GB, free: 19.12 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/1.983, allocations: 11.63 MB / 0.9126 GB, free: 7.457 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009221/1.992, allocations: 1.378 MB / 0.914 GB, free: 6.07 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002023/1.994, allocations: 0.5273 MB / 0.9145 GB, free: 5.543 MB / 0.5607 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.01331/2.008, allocations: 7.156 MB / 0.9215 GB, free: 14.55 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001877/2.01, allocations: 0.6403 MB / 0.9221 GB, free: 13.91 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.018/2.028, allocations: 10.1 MB / 0.932 GB, free: 3.738 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01345/2.041, allocations: 7.766 MB / 0.9396 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.779e-05/2.041, allocations: 16 kB / 0.9396 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001158/2.041, allocations: 27.89 kB / 0.9396 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0553/2.097, allocations: 25.7 MB / 0.9647 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.001e-05/2.097, allocations: 11.47 kB / 0.9647 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004367/2.101, allocations: 1.005 MB / 0.9657 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005263/2.106, allocations: 1.466 MB / 0.9671 GB, free: 15.67 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001188/2.108, allocations: 124 kB / 0.9672 GB, free: 15.55 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/2.123, allocations: 11.16 MB / 0.9781 GB, free: 4.285 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/2.123, allocations: 11.56 kB / 0.9781 GB, free: 4.277 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2863/2.409, allocations: 14.13 MB / 0.9919 GB, free: 227.8 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004224/2.414, allocations: 1.474 MB / 0.9934 GB, free: 227.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/2.415, allocations: 109.3 kB / 0.9935 GB, free: 227.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00332/2.418, allocations: 321.4 kB / 0.9938 GB, free: 227.4 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008101/2.419, allocations: 400.4 kB / 0.9942 GB, free: 227.3 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003646/2.42, allocations: 169 kB / 0.9943 GB, free: 227.3 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008097/2.428, allocations: 4.306 MB / 0.9985 GB, free: 226.6 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.082e-06/2.428, allocations: 0 / 0.9985 GB, free: 226.6 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01506/2.443, allocations: 4.099 MB / 1.003 GB, free: 225.3 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.02099/2.464, allocations: 14.91 MB / 1.017 GB, free: 218.3 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.0168/2.481, allocations: 11.37 MB / 1.028 GB, free: 214 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-05/2.481, allocations: 7.312 kB / 1.028 GB, free: 214 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.007499/2.488, allocations: 4.643 MB / 1.033 GB, free: 212.2 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009627/2.498, allocations: 1.563 MB / 1.034 GB, free: 211.6 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.155/2.653, allocations: 94.63 MB / 1.127 GB, free: 117 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02278/2.676, allocations: 11.26 MB / 1.138 GB, free: 105.7 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.009463/2.685, allocations: 3.77 MB / 1.141 GB, free: 101.9 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0116/2.697, allocations: 5.916 MB / 1.147 GB, free: 95.96 MB / 0.6232 GB Notification: Performance of SimCode: time 2.434e-06/2.697, allocations: 0 / 1.147 GB, free: 95.96 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5314/3.228, allocations: 206.4 MB / 1.349 GB, free: 136.1 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.68/28.91, allocations: 2.062 kB / 1.349 GB, free: 136.1 MB / 0.6232 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches