Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",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.0011/0.0011, allocations: 111.7 kB / 17.06 MB, free: 5.988 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.001146/0.001146, allocations: 195.9 kB / 18 MB, free: 5.074 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2587, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004918/0.2636, allocations: 4.075 MB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.2653, allocations: 0.8763 MB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003449/0.2657, allocations: 11.94 kB / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.266, allocations: 99.06 kB / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004712/0.2665, allocations: 174.4 kB / 405.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.2669, allocations: 139.7 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00074/0.2676, allocations: 0.6771 MB / 406.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.268, allocations: 211 kB / 406.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003572/0.2683, allocations: 255 kB / 406.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000385/0.2687, allocations: 290.7 kB / 407 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.687e-05/0.2688, allocations: 52 kB / 407.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.865e-05/0.2689, allocations: 56 kB / 407.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.959e-05/0.2691, allocations: 131.5 kB / 407.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/0.2694, allocations: 302.5 kB / 407.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005707/0.2699, allocations: 0.64 MB / 408.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.27, allocations: 4 kB / 408.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.27, allocations: 0 / 408.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.27, allocations: 0 / 408.2 MB, free: 0.8281 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001472/0.2715, allocations: 0.8651 MB / 409.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2715, allocations: 8.031 kB / 409.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.2717, allocations: 103.8 kB / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.2718, allocations: 64.19 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.2723, allocations: 375.5 kB / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.2724, allocations: 41.69 kB / 409.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.128e-05/0.2724, allocations: 56.38 kB / 409.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008054/0.2733, allocations: 0.4995 MB / 410.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.2733, allocations: 0 / 410.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.2733, allocations: 23.98 kB / 410.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.2734, allocations: 16 kB / 410.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000626/0.274, allocations: 336.7 kB / 410.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.2767, allocations: 1.713 MB / 412.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004333/0.2772, allocations: 261 kB / 412.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.2774, allocations: 149.5 kB / 412.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.2775, allocations: 4 kB / 412.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.2775, allocations: 42.5 kB / 412.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.724e-06/0.2775, allocations: 0 / 412.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001996/0.2795, allocations: 0.96 MB / 413.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.2796, allocations: 81.11 kB / 413.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/0.2801, allocations: 385.6 kB / 414.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.2802, allocations: 37.7 kB / 414.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.2804, allocations: 291.3 kB / 414.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.765e-05/0.2805, allocations: 118.3 kB / 414.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.2806, allocations: 70.14 kB / 414.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2808, allocations: 350.8 kB / 415 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.281, allocations: 104.7 kB / 415.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.2813, allocations: 198.6 kB / 415.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.2818, allocations: 314.3 kB / 415.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2818, allocations: 0 / 415.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008746/0.2827, allocations: 448.9 kB / 416.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.2827, allocations: 4 kB / 416.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.2827, allocations: 4 kB / 416.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003541/0.2831, allocations: 89.56 kB / 416.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.2834, allocations: 75.91 kB / 416.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/0.2858, allocations: 3.123 MB / 419.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.2861, allocations: 23.92 kB / 419.4 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.2862, allocations: 16 kB / 419.4 MB, free: 4.922 MB / 334.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.0002661/0.2865, allocations: 165.8 kB / 419.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.2866, allocations: 43.47 kB / 419.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.906e-05/0.2867, allocations: 51.45 kB / 419.6 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.2867, allocations: 4 kB / 419.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.2867, allocations: 0 / 419.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2867, allocations: 0 / 419.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.2881, allocations: 0.9441 MB / 420.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2881, allocations: 192 / 420.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.2883, allocations: 51.97 kB / 420.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.2886, allocations: 89.52 kB / 420.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.2886, allocations: 11.98 kB / 420.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002356/0.291, allocations: 3.127 MB / 423.9 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.291, allocations: 4.031 kB / 423.9 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009462/0.292, allocations: 0.6168 MB / 424.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.2921, allocations: 120.6 kB / 424.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.347e-05/0.2922, allocations: 4 kB / 424.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003602/0.2926, allocations: 35.97 kB / 424.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.2927, allocations: 23.97 kB / 424.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.2927, allocations: 8 kB / 424.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003423/0.293, allocations: 275.2 kB / 424.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2931, allocations: 0 / 424.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006398/0.2937, allocations: 116 kB / 425.1 MB, free: 14.84 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.001297/0.295, allocations: 1.169 MB / 426.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.296, allocations: 0.5128 MB / 426.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2961, allocations: 0.625 kB / 426.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.2967, allocations: 385.1 kB / 427.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.2973, allocations: 63.88 kB / 427.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005802/0.3031, allocations: 4.187 MB / 431.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.3035, allocations: 0.8353 MB / 432.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.3037, allocations: 43.3 kB / 432.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.3039, allocations: 171.4 kB / 432.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3039, allocations: 4 kB / 432.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3369, allocations: 8.964 MB / 441.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.922/10.26, allocations: 12.75 kB / 441.4 MB, free: 14.43 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches