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.001276/0.001276, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 63.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2702, allocations: 50.53 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005367/0.2757, allocations: 4.118 MB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.2776, allocations: 0.958 MB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.2778, allocations: 11.94 kB / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.2781, allocations: 91.08 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003318/0.2784, allocations: 186.4 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.2788, allocations: 155.8 kB / 414.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006729/0.2795, allocations: 0.6809 MB / 415 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003317/0.2798, allocations: 211 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.2802, allocations: 259 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.2805, allocations: 290.6 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.828e-05/0.2806, allocations: 56 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.2807, allocations: 56 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.2809, allocations: 131.5 kB / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002777/0.2811, allocations: 306.4 kB / 416.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000672/0.2818, allocations: 0.6447 MB / 416.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2818, allocations: 8 kB / 416.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2818, allocations: 0 / 416.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.2819, allocations: 0 / 416.9 MB, free: 9.359 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.001458/0.2833, allocations: 0.88 MB / 417.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2834, allocations: 12.03 kB / 417.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.2835, allocations: 107.9 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000276/0.2838, allocations: 88.5 kB / 418 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.2844, allocations: 387.9 kB / 418.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.2844, allocations: 41.69 kB / 418.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-05/0.2845, allocations: 52.33 kB / 418.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.2853, allocations: 0.4995 MB / 419 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.2854, allocations: 0 / 419 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.2854, allocations: 27.94 kB / 419 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.2854, allocations: 15.98 kB / 419 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006284/0.2861, allocations: 344.7 kB / 419.3 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.2888, allocations: 1.721 MB / 421.1 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.2893, allocations: 253.2 kB / 421.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.2895, allocations: 152.7 kB / 421.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.2896, allocations: 4 kB / 421.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.2896, allocations: 38.5 kB / 421.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.423e-06/0.2896, allocations: 0 / 421.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001917/0.2916, allocations: 0.9781 MB / 422.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.2916, allocations: 85.11 kB / 422.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.2921, allocations: 381.7 kB / 422.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.2921, allocations: 33.7 kB / 423 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.2923, allocations: 304.1 kB / 423.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.773e-05/0.2924, allocations: 122.9 kB / 423.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.2926, allocations: 78.08 kB / 423.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2927, allocations: 346.8 kB / 423.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.2929, allocations: 104.8 kB / 423.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.2932, allocations: 198.5 kB / 424.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/0.2937, allocations: 311.9 kB / 424.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2937, allocations: 0 / 424.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008368/0.2945, allocations: 449.5 kB / 424.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.2946, allocations: 8 kB / 424.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2946, allocations: 3.938 kB / 424.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.2949, allocations: 85.75 kB / 424.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.2953, allocations: 79.89 kB / 425 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.298, allocations: 3.123 MB / 428.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000258/0.2983, allocations: 19.94 kB / 428.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.2983, allocations: 16 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.0002127/0.2986, allocations: 169.8 kB / 428.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-05/0.2987, allocations: 51.66 kB / 428.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.352e-05/0.2987, allocations: 43.47 kB / 428.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2988, allocations: 7.938 kB / 428.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.2988, allocations: 4 kB / 428.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2988, allocations: 3.984 kB / 428.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001392/0.3002, allocations: 0.9557 MB / 429.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3002, allocations: 4 kB / 429.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3004, allocations: 47.91 kB / 429.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002667/0.3007, allocations: 81.64 kB / 429.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.3007, allocations: 7.938 kB / 429.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/0.3034, allocations: 3.124 MB / 432.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3034, allocations: 0 / 432.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/0.3043, allocations: 0.6177 MB / 433.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.3045, allocations: 112.9 kB / 433.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.3045, allocations: 8 kB / 433.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.3049, allocations: 31.98 kB / 433.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.421e-05/0.3049, allocations: 23.95 kB / 433.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.305, allocations: 12 kB / 433.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003135/0.3053, allocations: 275.2 kB / 433.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3053, allocations: 0 / 433.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005749/0.3059, allocations: 124 kB / 433.9 MB, free: 7.285 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.001256/0.3071, allocations: 1.174 MB / 435 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008773/0.308, allocations: 0.5087 MB / 435.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.308, allocations: 0 / 435.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.3086, allocations: 395.8 kB / 435.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.3092, allocations: 57.59 kB / 436 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005556/0.3147, allocations: 4.225 MB / 440.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.3152, allocations: 0.8391 MB / 441 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.3154, allocations: 51.28 kB / 441.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.3156, allocations: 179.3 kB / 441.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.345e-06/0.3156, allocations: 0 / 441.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03866/0.3543, allocations: 9.026 MB / 450.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.64, allocations: 15.3 kB / 450.3 MB, free: 6.727 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.1.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