Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001507/0.001507, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002038/0.002038, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2674, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005067/0.2725, allocations: 4.114 MB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.2742, allocations: 0.9541 MB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.2744, allocations: 11.94 kB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.2747, allocations: 95.06 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003268/0.275, allocations: 186.4 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.2754, allocations: 159.7 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000603/0.276, allocations: 0.6732 MB / 415 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.2763, allocations: 207 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.2766, allocations: 267 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.2769, allocations: 298.6 kB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.049e-05/0.277, allocations: 56 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.2771, allocations: 60 kB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.494e-05/0.2772, allocations: 123.5 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.2775, allocations: 306.5 kB / 416.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006352/0.2781, allocations: 0.6525 MB / 416.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2781, allocations: 0 / 416.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2782, allocations: 7.875 kB / 416.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.2782, allocations: 0 / 416.9 MB, free: 9.363 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001412/0.2796, allocations: 0.88 MB / 417.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.2796, allocations: 12.03 kB / 417.8 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.2798, allocations: 111.9 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002858/0.2801, allocations: 88.48 kB / 418 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.2807, allocations: 383.9 kB / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.2807, allocations: 41.69 kB / 418.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.2808, allocations: 52.33 kB / 418.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008105/0.2816, allocations: 0.4996 MB / 419 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2816, allocations: 3.938 kB / 419 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.798e-05/0.2817, allocations: 24 kB / 419 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.2817, allocations: 16 kB / 419 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006191/0.2823, allocations: 340.7 kB / 419.4 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00249/0.2848, allocations: 1.718 MB / 421.1 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.2853, allocations: 257.1 kB / 421.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.2855, allocations: 140.5 kB / 421.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2856, allocations: 8 kB / 421.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.2856, allocations: 50.42 kB / 421.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.2856, allocations: 0 / 421.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001856/0.2875, allocations: 0.9703 MB / 422.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.2875, allocations: 85.09 kB / 422.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.2879, allocations: 381.7 kB / 422.9 MB, free: 3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.288, allocations: 33.7 kB / 423 MB, free: 2.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.2881, allocations: 312 kB / 423.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.814e-05/0.2882, allocations: 123 kB / 423.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2884, allocations: 70.09 kB / 423.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.2885, allocations: 350.8 kB / 423.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.2887, allocations: 100.8 kB / 423.9 MB, free: 2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.289, allocations: 198.6 kB / 424.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.2894, allocations: 308.1 kB / 424.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2894, allocations: 4 kB / 424.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007908/0.2902, allocations: 450.8 kB / 424.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2903, allocations: 8.031 kB / 424.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2903, allocations: 4 kB / 424.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003237/0.2906, allocations: 85.53 kB / 424.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.2909, allocations: 79.91 kB / 425 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00241/0.2933, allocations: 3.127 MB / 428.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.2936, allocations: 19.92 kB / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.2937, allocations: 19.94 kB / 428.2 MB, free: 13.37 MB / 350.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.0002133/0.2939, allocations: 161.7 kB / 428.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-05/0.294, allocations: 51.72 kB / 428.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.488e-05/0.2941, allocations: 47.47 kB / 428.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.2941, allocations: 7.938 kB / 428.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.2941, allocations: 7.922 kB / 428.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.2941, allocations: 0 / 428.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.2955, allocations: 0.9481 MB / 429.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2955, allocations: 4.188 kB / 429.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.2957, allocations: 43.97 kB / 429.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.2959, allocations: 89.56 kB / 429.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.296, allocations: 8 kB / 429.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.2982, allocations: 3.12 MB / 432.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/0.2982, allocations: 7.922 kB / 432.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008624/0.2991, allocations: 0.6177 MB / 433.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.2992, allocations: 112.9 kB / 433.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.2993, allocations: 8 kB / 433.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003316/0.2996, allocations: 31.97 kB / 433.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.2997, allocations: 23.97 kB / 433.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.2997, allocations: 8 kB / 433.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.3, allocations: 279.2 kB / 433.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3, allocations: 0 / 433.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.3006, allocations: 116 kB / 433.9 MB, free: 7.293 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.001164/0.3018, allocations: 1.174 MB / 435 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008588/0.3027, allocations: 0.5173 MB / 435.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3027, allocations: 0 / 435.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.3032, allocations: 397.4 kB / 435.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.3037, allocations: 65.66 kB / 436 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005261/0.309, allocations: 4.217 MB / 440.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.3095, allocations: 0.8469 MB / 441.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3096, allocations: 43.28 kB / 441.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.3098, allocations: 175.4 kB / 441.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3098, allocations: 4 kB / 441.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.3451, allocations: 9.025 MB / 450.3 MB, free: 6.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.741/10.09, allocations: 19.3 kB / 450.3 MB, free: 6.73 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches