Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_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.001308/0.001308, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001172/0.001172, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.087, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer): time 0.1843/0.2713, allocations: 5.865 MB / 380.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003901/0.2753, allocations: 1.909 MB / 382.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006535/0.276, allocations: 19.25 kB / 382.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003759/0.2798, allocations: 1.63 MB / 384.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002313/0.2821, allocations: 0.8244 MB / 384.9 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008141/0.2829, allocations: 290.9 kB / 385.2 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.2842, allocations: 0.8939 MB / 386.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.2856, allocations: 0.8798 MB / 387 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007238/0.2864, allocations: 398.1 kB / 387.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008311/0.2872, allocations: 0.5299 MB / 387.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001977/0.2874, allocations: 84.19 kB / 388 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009887/0.2884, allocations: 243.3 kB / 388.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.2886, allocations: 207.7 kB / 388.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.2891, allocations: 466.3 kB / 388.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.2912, allocations: 1.238 MB / 390.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2912, allocations: 0 / 390.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2912, allocations: 4 kB / 390.1 MB, free: 6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2912, allocations: 0 / 390.1 MB, free: 6 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003546/0.2948, allocations: 1.447 MB / 391.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.2948, allocations: 9.094 kB / 391.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002026/0.295, allocations: 162.6 kB / 391.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006832/0.3019, allocations: 0.9659 MB / 392.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3031, allocations: 446.8 kB / 393.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.242e-05/0.3031, allocations: 82.73 kB / 393.2 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.3033, allocations: 110.2 kB / 393.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.3053, allocations: 1.136 MB / 394.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.3054, allocations: 1.875 kB / 394.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.194e-05/0.3055, allocations: 44.41 kB / 394.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.3055, allocations: 30.06 kB / 394.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/0.3075, allocations: 1.132 MB / 395.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005345/0.3128, allocations: 3.934 MB / 399.6 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003626/0.3165, allocations: 3.755 MB / 403.3 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005766/0.3171, allocations: 328 kB / 403.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.3173, allocations: 95.91 kB / 403.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.3173, allocations: 47.34 kB / 403.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 3.116e-06/0.3173, allocations: 0 / 403.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.00176/0.3191, allocations: 0.7568 MB / 404.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3192, allocations: 114.8 kB / 404.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.3198, allocations: 318.2 kB / 405 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.336e-05/0.3199, allocations: 41.48 kB / 405 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004303/0.3203, allocations: 461.1 kB / 405.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.3206, allocations: 259.9 kB / 405.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003058/0.3209, allocations: 177 kB / 405.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.3212, allocations: 352 kB / 406.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005502/0.3217, allocations: 249.6 kB / 406.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008884/0.3226, allocations: 0.5637 MB / 407 MB, free: 10.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.3242, allocations: 0.8716 MB / 407.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-05/0.3242, allocations: 3.281 kB / 407.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001668/0.3259, allocations: 0.9029 MB / 408.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.3259, allocations: 13.91 kB / 408.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.326, allocations: 10.81 kB / 408.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.853e-05/0.326, allocations: 19.94 kB / 408.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.3269, allocations: 236.4 kB / 409.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.452e-05/0.3269, allocations: 20.59 kB / 409.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/0.3276, allocations: 107.3 kB / 409.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-05/0.3277, allocations: 43.78 kB / 409.3 MB, free: 8.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (122): * Single equations (assignments): 122 * 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.0005258/0.3282, allocations: 241.6 kB / 409.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.3284, allocations: 57.17 kB / 409.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.3297, allocations: 0.6875 MB / 410.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.3298, allocations: 11.45 kB / 410.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3298, allocations: 1.406 kB / 410.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3298, allocations: 5.391 kB / 410.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.3325, allocations: 1.566 MB / 411.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3325, allocations: 7.312 kB / 411.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005814/0.3331, allocations: 145.8 kB / 412 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3331, allocations: 3.375 kB / 412 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.3332, allocations: 17.61 kB / 412 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.3332, allocations: 4.188 kB / 412 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3332, allocations: 0 / 412 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.3349, allocations: 1.177 MB / 413.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.3351, allocations: 136.4 kB / 413.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.048e-05/0.3352, allocations: 17.22 kB / 413.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.3356, allocations: 20.05 kB / 413.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3357, allocations: 48.53 kB / 413.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.3357, allocations: 25.31 kB / 413.4 MB, free: 6.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3359, allocations: 210.1 kB / 413.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3359, allocations: 0 / 413.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008945/0.3368, allocations: 248.5 kB / 413.9 MB, free: 6.059 MB / 334.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 (78): * Single equations (assignments): 78 * 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.002084/0.3389, allocations: 1.762 MB / 415.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.3402, allocations: 0.6959 MB / 416.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3402, allocations: 0 / 416.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005104/0.3408, allocations: 322.3 kB / 416.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.3413, allocations: 43.66 kB / 416.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00823/0.3496, allocations: 5.546 MB / 422.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006642/0.3503, allocations: 0.9241 MB / 423.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003682/0.3507, allocations: 92.89 kB / 423.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004247/0.3511, allocations: 283.3 kB / 423.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3511, allocations: 0 / 423.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.3922, allocations: 10.5 MB / 434 MB, free: 2.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.767/9.159, allocations: 15.86 kB / 434 MB, free: 2.617 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches