Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001356/0.001356, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 201.2 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.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.263, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.00764/0.2707, allocations: 5.615 MB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003712/0.2744, allocations: 1.857 MB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000355/0.2748, allocations: 20 kB / 416.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003641/0.2785, allocations: 1.621 MB / 417.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001662/0.2802, allocations: 0.5863 MB / 418.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008938/0.2811, allocations: 418.8 kB / 418.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.2821, allocations: 0.794 MB / 419.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.2835, allocations: 0.8672 MB / 420.5 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005521/0.284, allocations: 366.6 kB / 420.9 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006004/0.2846, allocations: 486.2 kB / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.2848, allocations: 76 kB / 421.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006013/0.2854, allocations: 251.8 kB / 421.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.2856, allocations: 179.4 kB / 421.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003832/0.286, allocations: 421.9 kB / 422.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.2875, allocations: 1.183 MB / 423.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2875, allocations: 7.938 kB / 423.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2875, allocations: 0 / 423.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.2875, allocations: 4 kB / 423.5 MB, free: 2.766 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.003427/0.2909, allocations: 1.364 MB / 424.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.291, allocations: 12.02 kB / 424.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000192/0.2912, allocations: 148.3 kB / 425 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00466/0.2959, allocations: 0.6521 MB / 425.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007281/0.2966, allocations: 423.2 kB / 426.1 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.2967, allocations: 74.36 kB / 426.1 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.2969, allocations: 92.45 kB / 426.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.2987, allocations: 0.9939 MB / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.2987, allocations: 0 / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.009e-05/0.2988, allocations: 36 kB / 427.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.2988, allocations: 24 kB / 427.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.3005, allocations: 0.9252 MB / 428.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.3055, allocations: 3.435 MB / 431.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.3081, allocations: 2.241 MB / 433.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.3086, allocations: 287.7 kB / 434.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001854/0.3088, allocations: 182.7 kB / 434.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.3089, allocations: 47.06 kB / 434.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.505e-06/0.3089, allocations: 4 kB / 434.4 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.001443/0.3103, allocations: 0.7135 MB / 435.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.3104, allocations: 111.4 kB / 435.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.3108, allocations: 274.5 kB / 435.5 MB, free: 6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.3108, allocations: 33.7 kB / 435.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.3111, allocations: 396.1 kB / 435.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.3113, allocations: 238 kB / 436.1 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.3115, allocations: 138.6 kB / 436.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3117, allocations: 346.8 kB / 436.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004274/0.3121, allocations: 217.9 kB / 436.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.3127, allocations: 443.3 kB / 437.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3138, allocations: 0.6872 MB / 437.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3138, allocations: 4 kB / 437.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001362/0.3152, allocations: 0.7525 MB / 438.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3152, allocations: 11.94 kB / 438.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.3153, allocations: 8 kB / 438.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.3153, allocations: 8 kB / 438.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007117/0.316, allocations: 199.6 kB / 438.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.316, allocations: 12.41 kB / 438.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004029/0.3164, allocations: 87.39 kB / 439 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.927e-05/0.3165, allocations: 28 kB / 439 MB, free: 2.219 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.0003171/0.3168, allocations: 221.6 kB / 439.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.317, allocations: 43.64 kB / 439.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.3183, allocations: 0.6478 MB / 439.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.3183, allocations: 8 kB / 439.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3183, allocations: 3.938 kB / 439.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3183, allocations: 7.984 kB / 440 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.3209, allocations: 1.469 MB / 441.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3209, allocations: 4 kB / 441.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.3215, allocations: 139.8 kB / 441.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.3215, allocations: 4 kB / 441.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.3216, allocations: 20 kB / 441.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.3216, allocations: 7.938 kB / 441.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3216, allocations: 0 / 441.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.3233, allocations: 1.112 MB / 442.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.3234, allocations: 132.8 kB / 442.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.925e-05/0.3235, allocations: 16 kB / 442.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.3239, allocations: 31.86 kB / 442.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.324, allocations: 40.5 kB / 442.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.63e-05/0.324, allocations: 20 kB / 442.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001964/0.3242, allocations: 182 kB / 443.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3242, allocations: 0 / 443.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008651/0.3251, allocations: 231.3 kB / 443.3 MB, free: 13.79 MB / 366.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.002164/0.3273, allocations: 1.706 MB / 445.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3285, allocations: 0.6108 MB / 445.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3285, allocations: 4 kB / 445.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.329, allocations: 303 kB / 446 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005594/0.3295, allocations: 47.2 kB / 446 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007156/0.3367, allocations: 4.844 MB / 450.9 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.3374, allocations: 0.9007 MB / 451.8 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.3377, allocations: 76.39 kB / 451.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.3381, allocations: 259.3 kB / 452.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3381, allocations: 0 / 452.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.376, allocations: 9.581 MB / 461.7 MB, free: 11.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/9.066, allocations: 15.17 kB / 461.7 MB, free: 11.3 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches