Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001349/0.001355, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001243/0.001243, allocations: 191 kB / 18 MB, free: 5.098 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.474/1.474, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2903, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005547/0.2959, allocations: 4.083 MB / 404.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.2981, allocations: 0.8763 MB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005505/0.2986, allocations: 8 kB / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.2991, allocations: 91.08 kB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007027/0.2998, allocations: 190.4 kB / 405.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.3004, allocations: 143.8 kB / 405.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.3015, allocations: 0.6655 MB / 406.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003976/0.3019, allocations: 214.9 kB / 406.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.3023, allocations: 255 kB / 406.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.3026, allocations: 286.7 kB / 407.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.287e-05/0.3027, allocations: 56 kB / 407.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.991e-05/0.3028, allocations: 59.94 kB / 407.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.3029, allocations: 135.5 kB / 407.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002726/0.3032, allocations: 298.5 kB / 407.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007227/0.3039, allocations: 0.6447 MB / 408.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3039, allocations: 0 / 408.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3039, allocations: 0 / 408.2 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.304, allocations: 0 / 408.2 MB, free: 0.7969 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001417/0.3054, allocations: 0.8763 MB / 409.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3054, allocations: 12.03 kB / 409.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001596/0.3056, allocations: 107.8 kB / 409.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.3057, allocations: 72.52 kB / 409.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005593/0.3063, allocations: 375.9 kB / 409.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.3063, allocations: 37.69 kB / 409.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.693e-05/0.3064, allocations: 52.38 kB / 409.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008275/0.3072, allocations: 0.4957 MB / 410.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.3073, allocations: 4 kB / 410.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.3073, allocations: 20 kB / 410.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.3073, allocations: 16 kB / 410.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.308, allocations: 340.7 kB / 410.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.3106, allocations: 1.718 MB / 412.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.3111, allocations: 269 kB / 412.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.3113, allocations: 145.6 kB / 412.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.3113, allocations: 11.98 kB / 412.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.3114, allocations: 34.5 kB / 412.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.035e-06/0.3114, allocations: 0 / 412.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001981/0.3134, allocations: 0.9783 MB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.3135, allocations: 81.11 kB / 413.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004014/0.3139, allocations: 381.6 kB / 414.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3139, allocations: 37.7 kB / 414.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.3141, allocations: 300 kB / 414.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.3142, allocations: 115 kB / 414.7 MB, free: 10 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.3144, allocations: 78.08 kB / 414.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3145, allocations: 346.8 kB / 415.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.3147, allocations: 104.8 kB / 415.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.315, allocations: 198.5 kB / 415.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004687/0.3155, allocations: 306.2 kB / 415.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3155, allocations: 0 / 415.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007815/0.3163, allocations: 452.7 kB / 416.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3163, allocations: 8 kB / 416.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3163, allocations: 4 kB / 416.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/0.3167, allocations: 81.75 kB / 416.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.317, allocations: 87.83 kB / 416.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002596/0.3196, allocations: 3.115 MB / 419.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.3199, allocations: 23.89 kB / 419.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.32, allocations: 16.06 kB / 419.5 MB, free: 4.844 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.3202, allocations: 161.8 kB / 419.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.456e-05/0.3203, allocations: 51.69 kB / 419.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.203e-05/0.3204, allocations: 47.45 kB / 419.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3204, allocations: 7.938 kB / 419.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3204, allocations: 0 / 419.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3204, allocations: 4 kB / 419.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.3217, allocations: 0.9552 MB / 420.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3218, allocations: 4 kB / 420.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.322, allocations: 43.92 kB / 420.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002753/0.3222, allocations: 85.58 kB / 420.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.3223, allocations: 11.98 kB / 420.8 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.3246, allocations: 3.127 MB / 423.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3247, allocations: 4.062 kB / 423.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009232/0.3256, allocations: 0.6142 MB / 424.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.3257, allocations: 116.9 kB / 424.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/0.3258, allocations: 15.98 kB / 424.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.3261, allocations: 27.97 kB / 424.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.594e-05/0.3262, allocations: 23.97 kB / 424.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.3262, allocations: 15.98 kB / 424.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.3266, allocations: 267.2 kB / 425 MB, free: 14.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3266, allocations: 4 kB / 425 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006101/0.3272, allocations: 120 kB / 425.1 MB, free: 14.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,5,100.0%), (1,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.001293/0.3285, allocations: 1.166 MB / 426.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009634/0.3295, allocations: 0.513 MB / 426.8 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3295, allocations: 0 / 426.8 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005775/0.3301, allocations: 384.4 kB / 427.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.3306, allocations: 64.89 kB / 427.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005475/0.3361, allocations: 4.216 MB / 431.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3365, allocations: 0.8432 MB / 432.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.3367, allocations: 43.28 kB / 432.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.3369, allocations: 171.4 kB / 432.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3369, allocations: 0 / 432.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04896/0.3859, allocations: 8.973 MB / 441.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.737/10.12, allocations: 4.688 kB / 441.5 MB, free: 14.3 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches