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.001553/0.001554, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002142/0.002142, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.16 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.09946, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.0057/0.1052, allocations: 4.105 MB / 361.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.1073, allocations: 0.9658 MB / 362.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004438/0.1077, allocations: 11.94 kB / 362.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.1081, allocations: 91.08 kB / 362.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005556/0.1087, allocations: 186.4 kB / 362.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.1092, allocations: 151.8 kB / 363.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009279/0.1101, allocations: 0.681 MB / 363.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.1105, allocations: 207 kB / 364 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.111, allocations: 259 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004351/0.1114, allocations: 286.7 kB / 364.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.1115, allocations: 56 kB / 364.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.1117, allocations: 60 kB / 364.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1119, allocations: 131.5 kB / 364.7 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.1122, allocations: 306.5 kB / 365 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007024/0.1129, allocations: 0.6424 MB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.113, allocations: 0 / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.113, allocations: 4 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.101e-05/0.113, allocations: 0 / 365.7 MB, free: 5.871 MB / 302.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.001734/0.1148, allocations: 0.8689 MB / 366.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.1148, allocations: 8.031 kB / 366.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001836/0.115, allocations: 111.8 kB / 366.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000336/0.1153, allocations: 80.17 kB / 366.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.116, allocations: 375.6 kB / 367.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.116, allocations: 37.69 kB / 367.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.1161, allocations: 52.38 kB / 367.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009197/0.117, allocations: 0.4995 MB / 367.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1171, allocations: 3.984 kB / 367.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.1171, allocations: 20 kB / 367.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.1171, allocations: 12 kB / 367.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007394/0.1179, allocations: 344.6 kB / 368.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002881/0.1208, allocations: 1.74 MB / 369.8 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004941/0.1213, allocations: 258.8 kB / 370.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.1216, allocations: 145.6 kB / 370.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1216, allocations: 15.92 kB / 370.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.1216, allocations: 42.81 kB / 370.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.1217, allocations: 0 / 370.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001967/0.1236, allocations: 0.9571 MB / 371.2 MB, free: 4 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1602/0.2838, allocations: 79.36 kB / 371.3 MB, free: 20.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005562/0.2844, allocations: 387.5 kB / 371.7 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/0.2845, allocations: 30.8 kB / 371.7 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.2846, allocations: 295.9 kB / 372 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.401e-05/0.2847, allocations: 117.2 kB / 372.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.2849, allocations: 80.19 kB / 372.2 MB, free: 19.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.331e-05/0.285, allocations: 349.8 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.2852, allocations: 101.1 kB / 372.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.2855, allocations: 192.3 kB / 372.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.286, allocations: 305.8 kB / 373.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.286, allocations: 2.297 kB / 373.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008899/0.2869, allocations: 448.4 kB / 373.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.2869, allocations: 5.438 kB / 373.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2869, allocations: 4.438 kB / 373.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.2873, allocations: 86.11 kB / 373.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/0.2876, allocations: 78.22 kB / 373.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.2896, allocations: 3.128 MB / 376.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.2899, allocations: 21.84 kB / 376.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.2899, allocations: 12.39 kB / 376.9 MB, free: 16.08 MB / 302.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.000203/0.2901, allocations: 184.4 kB / 377.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2903, allocations: 42.2 kB / 377.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.055e-05/0.2903, allocations: 42.52 kB / 377.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2903, allocations: 3.953 kB / 377.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.2904, allocations: 1.969 kB / 377.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2904, allocations: 2.062 kB / 377.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.2918, allocations: 0.9468 MB / 378.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2918, allocations: 0 / 378.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.292, allocations: 51.19 kB / 378.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.2922, allocations: 77.7 kB / 378.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.2923, allocations: 8.531 kB / 378.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/0.294, allocations: 3.133 MB / 381.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2941, allocations: 1.188 kB / 381.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/0.2949, allocations: 0.6171 MB / 382 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.295, allocations: 115.8 kB / 382.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.2951, allocations: 7.406 kB / 382.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.2954, allocations: 27.59 kB / 382.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/0.2955, allocations: 28 kB / 382.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.2956, allocations: 12.28 kB / 382.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.2959, allocations: 274.9 kB / 382.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.2959, allocations: 0 / 382.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006476/0.2965, allocations: 119.2 kB / 382.6 MB, free: 11.5 MB / 302.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.001123/0.2977, allocations: 1.169 MB / 383.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.2987, allocations: 0.5235 MB / 384.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2987, allocations: 1 kB / 384.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005848/0.2993, allocations: 384.1 kB / 384.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/0.2999, allocations: 69.73 kB / 384.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006124/0.3061, allocations: 4.315 MB / 389 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.3065, allocations: 0.8462 MB / 389.9 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002371/0.3068, allocations: 43.72 kB / 389.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.307, allocations: 174.4 kB / 390.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.307, allocations: 0 / 390.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05638/0.3634, allocations: 8.821 MB / 398.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.501/9.865, allocations: 13.67 kB / 398.9 MB, free: 3.461 MB / 302.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