Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",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.001133/0.001133, allocations: 106.6 kB / 17.06 MB, free: 5.969 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.001171/0.001172, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2956, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.006959/0.3026, allocations: 5.617 MB / 405.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.3062, allocations: 1.799 MB / 407.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.3065, allocations: 23.94 kB / 407.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003297/0.3098, allocations: 1.62 MB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.3115, allocations: 0.7558 MB / 410 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.3121, allocations: 275.4 kB / 410.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007807/0.3129, allocations: 0.8017 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.3141, allocations: 0.8594 MB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004053/0.3145, allocations: 362.7 kB / 412.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005181/0.315, allocations: 494.1 kB / 412.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.465e-05/0.3151, allocations: 80 kB / 412.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004723/0.3156, allocations: 231.8 kB / 413.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.3157, allocations: 187.4 kB / 413.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.3161, allocations: 425.9 kB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.3173, allocations: 1.167 MB / 414.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3173, allocations: 4 kB / 414.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3173, allocations: 0 / 414.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.3173, allocations: 0 / 414.9 MB, free: 10.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003168/0.3205, allocations: 1.368 MB / 416.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3206, allocations: 8.031 kB / 416.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.3207, allocations: 156.2 kB / 416.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004554/0.3253, allocations: 0.6482 MB / 417.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.3259, allocations: 427.1 kB / 417.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.626e-05/0.326, allocations: 74.36 kB / 417.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.3261, allocations: 104.3 kB / 417.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3277, allocations: 0.9899 MB / 418.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.3278, allocations: 0 / 418.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.067e-05/0.3278, allocations: 36 kB / 418.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.3279, allocations: 24 kB / 418.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.3294, allocations: 0.9253 MB / 419.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004283/0.3337, allocations: 3.34 MB / 423 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.3361, allocations: 2.236 MB / 425.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.3366, allocations: 301.6 kB / 425.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.3367, allocations: 97.64 kB / 425.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.3367, allocations: 47.06 kB / 425.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.094e-06/0.3367, allocations: 0 / 425.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.001343/0.3381, allocations: 0.7175 MB / 426.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.3382, allocations: 111.4 kB / 426.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.3384, allocations: 274.5 kB / 426.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.3385, allocations: 37.7 kB / 426.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.3387, allocations: 384 kB / 427.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.3389, allocations: 242 kB / 427.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.3391, allocations: 134.7 kB / 427.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3392, allocations: 350.8 kB / 427.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.3396, allocations: 221.9 kB / 428.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/0.3402, allocations: 435.3 kB / 428.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009619/0.3412, allocations: 0.6911 MB / 429.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.3412, allocations: 4 kB / 429.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001179/0.3424, allocations: 0.7566 MB / 429.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.3424, allocations: 11.94 kB / 430 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3424, allocations: 4 kB / 430 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/0.3424, allocations: 12 kB / 430 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.3431, allocations: 183.7 kB / 430.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/0.3431, allocations: 19.92 kB / 430.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004049/0.3435, allocations: 91.58 kB / 430.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.3436, allocations: 32 kB / 430.3 MB, free: 9.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002961/0.3439, allocations: 221.6 kB / 430.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.344, allocations: 47.66 kB / 430.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.3451, allocations: 0.6401 MB / 431.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3451, allocations: 8 kB / 431.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3452, allocations: 4 kB / 431.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3452, allocations: 3.984 kB / 431.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.3475, allocations: 1.485 MB / 432.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.3475, allocations: 0 / 432.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.348, allocations: 135.8 kB / 432.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.348, allocations: 4 kB / 432.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.213e-05/0.3481, allocations: 23.98 kB / 432.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.3481, allocations: 3.938 kB / 432.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3481, allocations: 4 kB / 432.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3496, allocations: 1.116 MB / 434 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3497, allocations: 128.6 kB / 434.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.923e-05/0.3498, allocations: 12 kB / 434.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.3501, allocations: 31.98 kB / 434.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.466e-05/0.3502, allocations: 44.5 kB / 434.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.3503, allocations: 16 kB / 434.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.3505, allocations: 190 kB / 434.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3505, allocations: 0 / 434.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007631/0.3512, allocations: 219.4 kB / 434.6 MB, free: 5.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_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 (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001905/0.3531, allocations: 1.711 MB / 436.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3542, allocations: 0.6135 MB / 436.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3542, allocations: 0 / 436.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.3546, allocations: 300.6 kB / 437.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.3552, allocations: 51.16 kB / 437.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.3612, allocations: 4.843 MB / 442.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004822/0.3617, allocations: 0.8968 MB / 443 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.362, allocations: 76.39 kB / 443.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.3623, allocations: 259.3 kB / 443.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3623, allocations: 3.938 kB / 443.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/0.3936, allocations: 9.523 MB / 452.9 MB, free: 2.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.512, allocations: 4.688 kB / 452.9 MB, free: 2.879 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches