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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008301/0.0008301, allocations: 76.08 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008619/0.0008619, allocations: 157.1 kB / 23.94 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9205/0.9205, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.61e-05/3.813e-05, allocations: 2.281 kB / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.003854/0.003892, allocations: 3.676 MB / 322.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.005125, allocations: 0.8529 MB / 323 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001972/0.005322, allocations: 8 kB / 323 MB, free: 1.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.0055, allocations: 102.9 kB / 323.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.005767, allocations: 186.3 kB / 323.3 MB, free: 1.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003405/0.006108, allocations: 147.7 kB / 323.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.006604, allocations: 0.7002 MB / 324.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.006824, allocations: 127.7 kB / 324.3 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/0.007174, allocations: 395.1 kB / 324.6 MB, free: 128 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.007388, allocations: 215.2 kB / 324.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.288e-05/0.00745, allocations: 56 kB / 324.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.23e-05/0.007503, allocations: 56 kB / 325 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.036e-05/0.007573, allocations: 127.4 kB / 325.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.007713, allocations: 223.4 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007592/0.008473, allocations: 0.654 MB / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.008478, allocations: 4 kB / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.00848, allocations: 0 / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.567e-06/0.008488, allocations: 0 / 326 MB, free: 14.8 MB / 298.7 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.0009562/0.009444, allocations: 0.7963 MB / 326.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.00949, allocations: 8.922 kB / 326.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.009608, allocations: 115.8 kB / 326.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.655e-05/0.009685, allocations: 72.56 kB / 326.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.0101, allocations: 313.3 kB / 327.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.01013, allocations: 41.69 kB / 327.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.01018, allocations: 52.38 kB / 327.3 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006283/0.01081, allocations: 0.6465 MB / 328 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.01082, allocations: 192 / 328 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.01086, allocations: 24.12 kB / 328 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.01088, allocations: 16 kB / 328 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.01132, allocations: 332.5 kB / 328.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.01319, allocations: 1.55 MB / 329.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.01352, allocations: 245.1 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.01367, allocations: 137.6 kB / 330.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.01369, allocations: 7.938 kB / 330.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.01372, allocations: 38.88 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.803e-06/0.01372, allocations: 0 / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001301/0.01502, allocations: 0.8188 MB / 331.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.01507, allocations: 85.05 kB / 331.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.01538, allocations: 401.4 kB / 331.6 MB, free: 8.832 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.0154, allocations: 33.7 kB / 331.7 MB, free: 8.793 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.01554, allocations: 304.1 kB / 331.9 MB, free: 8.492 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.317e-05/0.01561, allocations: 115 kB / 332.1 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.183e-05/0.01569, allocations: 74.12 kB / 332.1 MB, free: 8.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.0158, allocations: 354.8 kB / 332.5 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.01593, allocations: 101 kB / 332.6 MB, free: 7.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.01638, allocations: 199.2 kB / 332.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.0167, allocations: 301.1 kB / 333.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.0167, allocations: 4 kB / 333.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000526/0.01723, allocations: 442.7 kB / 333.5 MB, free: 6.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.01724, allocations: 8 kB / 333.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.01725, allocations: 0 / 333.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.0175, allocations: 85.75 kB / 333.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.01769, allocations: 83.89 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.01969, allocations: 2.908 MB / 336.6 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.01989, allocations: 15.95 kB / 336.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.01991, allocations: 16 kB / 336.6 MB, free: 3.492 MB / 298.7 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.000251/0.02016, allocations: 169.6 kB / 336.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.02024, allocations: 39.77 kB / 336.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/0.0203, allocations: 51.34 kB / 336.9 MB, free: 3.227 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.0203, allocations: 4 kB / 336.9 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.02031, allocations: 4.062 kB / 336.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.02031, allocations: 0 / 336.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009008/0.02121, allocations: 0.8718 MB / 337.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.02122, allocations: 0 / 337.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.462e-05/0.02131, allocations: 44.16 kB / 337.8 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001646/0.02148, allocations: 93.52 kB / 337.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.02149, allocations: 8 kB / 337.9 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.02327, allocations: 2.916 MB / 340.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.02327, allocations: 0 / 340.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.02383, allocations: 0.614 MB / 341.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.02388, allocations: 59.44 kB / 341.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.02391, allocations: 4 kB / 341.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.02407, allocations: 27.98 kB / 341.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.02413, allocations: 23.95 kB / 341.5 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.02415, allocations: 11.98 kB / 341.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002175/0.02437, allocations: 267.2 kB / 341.8 MB, free: 13.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.02437, allocations: 4 kB / 341.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004701/0.02484, allocations: 120 kB / 341.9 MB, free: 13.85 MB / 314.7 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.0008971/0.02573, allocations: 1.151 MB / 343.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000714/0.02645, allocations: 0.5105 MB / 343.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.02645, allocations: 0 / 343.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.02685, allocations: 385.7 kB / 344 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.02729, allocations: 57.42 kB / 344 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/0.03168, allocations: 4.144 MB / 348.2 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.03186, allocations: 250.3 kB / 348.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.03198, allocations: 39.3 kB / 348.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.03214, allocations: 168.4 kB / 348.6 MB, free: 6.891 MB / 314.7 MB Notification: Performance of SimCode: time 1.383e-06/0.03214, allocations: 4 kB / 348.6 MB, free: 6.887 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/0.06517, allocations: 10.08 MB / 358.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.298/7.363, allocations: 3.859 kB / 358.7 MB, free: 13.01 MB / 330.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable basicTransformer.i1 in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i1 from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable basicTransformer.i2 in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i2 from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable inductor22.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable inductor22.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.501563526690006]