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.001729/0.001729, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002011/0.002011, allocations: 188.2 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.397/1.397, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002293/0.002293, allocations: 51.92 kB / 370.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2863, allocations: 52.19 MB / 422.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005595/0.2919, allocations: 4.111 MB / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.294, allocations: 0.8878 MB / 427.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002456/0.2942, allocations: 8 kB / 427.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.2945, allocations: 95.08 kB / 427.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.2948, allocations: 194.4 kB / 428 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.2952, allocations: 135.8 kB / 428.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007184/0.2959, allocations: 0.6732 MB / 428.8 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003046/0.2962, allocations: 143.7 kB / 428.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/0.2966, allocations: 263 kB / 429.2 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000403/0.297, allocations: 294.7 kB / 429.5 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.961e-05/0.2971, allocations: 56 kB / 429.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.924e-05/0.2972, allocations: 52 kB / 429.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.2974, allocations: 131.4 kB / 429.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002952/0.2976, allocations: 298.5 kB / 430 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.2984, allocations: 0.646 MB / 430.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2984, allocations: 4 kB / 430.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.017e-06/0.2984, allocations: 4 kB / 430.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.2984, allocations: 0 / 430.6 MB, free: 6.547 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.001485/0.2999, allocations: 0.797 MB / 431.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3, allocations: 12.03 kB / 431.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.3001, allocations: 107.9 kB / 431.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.3002, allocations: 76.56 kB / 431.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.3008, allocations: 314 kB / 431.9 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.3009, allocations: 45.69 kB / 432 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.978e-05/0.3009, allocations: 48.38 kB / 432 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.3018, allocations: 0.4917 MB / 432.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.3018, allocations: 0 / 432.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.3018, allocations: 24 kB / 432.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.3019, allocations: 16 kB / 432.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006996/0.3026, allocations: 348.4 kB / 432.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.3054, allocations: 1.658 MB / 434.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004594/0.3058, allocations: 249 kB / 434.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.3061, allocations: 132.9 kB / 434.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3061, allocations: 4 kB / 434.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.3061, allocations: 46.48 kB / 435 MB, free: 2.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.954e-06/0.3061, allocations: 3.938 kB / 435 MB, free: 2 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001906/0.308, allocations: 0.8279 MB / 435.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.3081, allocations: 81.11 kB / 435.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.3086, allocations: 389.6 kB / 436.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.3086, allocations: 33.7 kB / 436.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.3088, allocations: 296.1 kB / 436.6 MB, free: 324 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.236e-05/0.3089, allocations: 123 kB / 436.7 MB, free: 200 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.309, allocations: 78.08 kB / 436.8 MB, free: 116 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3092, allocations: 346.8 kB / 437.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.3094, allocations: 100.8 kB / 437.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.3097, allocations: 194.6 kB / 437.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.3102, allocations: 310.3 kB / 437.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3102, allocations: 0 / 437.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008205/0.311, allocations: 452.5 kB / 438.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.311, allocations: 4 kB / 438.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.311, allocations: 4 kB / 438.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003427/0.3114, allocations: 85.62 kB / 438.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.3117, allocations: 83.83 kB / 438.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.3143, allocations: 2.917 MB / 441.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.3146, allocations: 16 kB / 441.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.3146, allocations: 12 kB / 441.3 MB, free: 11.3 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.0002174/0.3148, allocations: 165.8 kB / 441.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-05/0.3149, allocations: 51.66 kB / 441.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.68e-05/0.315, allocations: 47.39 kB / 441.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.315, allocations: 4 kB / 441.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.315, allocations: 0 / 441.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.315, allocations: 0 / 441.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.3164, allocations: 0.9238 MB / 442.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.3164, allocations: 0 / 442.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.3166, allocations: 47.91 kB / 442.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002761/0.3169, allocations: 89.81 kB / 442.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.3169, allocations: 8 kB / 442.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/0.3194, allocations: 2.912 MB / 445.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3194, allocations: 192 / 445.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009471/0.3204, allocations: 0.6214 MB / 446.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.481e-05/0.3205, allocations: 51.69 kB / 446.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.3205, allocations: 4 kB / 446.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.3209, allocations: 31.98 kB / 446.2 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.644e-05/0.3209, allocations: 27.94 kB / 446.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.3209, allocations: 8 kB / 446.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003092/0.3213, allocations: 271.2 kB / 446.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3213, allocations: 0 / 446.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005826/0.3218, allocations: 127.9 kB / 446.6 MB, free: 5.594 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.001313/0.3231, allocations: 1.163 MB / 447.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.3241, allocations: 0.495 MB / 448.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3241, allocations: 0.625 kB / 448.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006164/0.3247, allocations: 384.2 kB / 448.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.3252, allocations: 57.64 kB / 448.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005992/0.3312, allocations: 4.219 MB / 453 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000477/0.3317, allocations: 0.8431 MB / 453.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.3319, allocations: 47.28 kB / 453.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000219/0.3321, allocations: 171.4 kB / 454 MB, free: 13.96 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3321, allocations: 0 / 454 MB, free: 13.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04494/0.377, allocations: 9.298 MB / 463.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.1, allocations: 13.38 kB / 463.3 MB, free: 4.836 MB / 366.1 MB " [Timeout remaining time 648] (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/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) [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: 16.22501539299992]