Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 59.92 kB / 347.2 MB, free: 9.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2488, allocations: 49.15 MB / 396.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004838/0.2536, allocations: 3.632 MB / 400 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.2555, allocations: 0.8885 MB / 400.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000594/0.2561, allocations: 12.97 kB / 400.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003604/0.2565, allocations: 92.95 kB / 401 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005907/0.2571, allocations: 189.8 kB / 401.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.2575, allocations: 140.9 kB / 401.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006565/0.2582, allocations: 0.6795 MB / 402 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.2584, allocations: 136.1 kB / 402.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.2588, allocations: 267.1 kB / 402.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.2591, allocations: 250.7 kB / 402.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.969e-05/0.2591, allocations: 54.66 kB / 402.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.867e-05/0.2592, allocations: 59.25 kB / 402.8 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.469e-05/0.2593, allocations: 128.1 kB / 402.9 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.2595, allocations: 256.4 kB / 403.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005758/0.2601, allocations: 0.6496 MB / 403.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2601, allocations: 0 / 403.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2601, allocations: 0 / 403.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.2601, allocations: 0 / 403.8 MB, free: 4.383 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.00128/0.2614, allocations: 0.8064 MB / 404.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2615, allocations: 13.3 kB / 404.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.2616, allocations: 109.6 kB / 404.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2617, allocations: 69.98 kB / 404.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.2622, allocations: 315.3 kB / 405.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.2622, allocations: 38.84 kB / 405.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.261e-05/0.2623, allocations: 53.98 kB / 405.2 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000824/0.2631, allocations: 0.6466 MB / 405.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.2631, allocations: 3.984 kB / 405.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.2632, allocations: 25.47 kB / 405.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2632, allocations: 12.81 kB / 405.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005976/0.2638, allocations: 341.8 kB / 406.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.2661, allocations: 1.542 MB / 407.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/0.2666, allocations: 254.1 kB / 408 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.2668, allocations: 129.9 kB / 408.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.2668, allocations: 3.781 kB / 408.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.2668, allocations: 46.97 kB / 408.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.2668, allocations: 3.938 kB / 408.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00165/0.2685, allocations: 0.8191 MB / 409 MB, free: 1.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.2685, allocations: 81.7 kB / 409.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.2689, allocations: 388 kB / 409.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.2689, allocations: 31.92 kB / 409.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.269, allocations: 301.3 kB / 409.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.877e-05/0.2691, allocations: 123.5 kB / 409.9 MB, free: 464 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.2692, allocations: 72.17 kB / 410 MB, free: 420 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.617e-05/0.2693, allocations: 348.9 kB / 410.3 MB, free: 84 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.2694, allocations: 104.7 kB / 410.4 MB, free: 48 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.2697, allocations: 195.1 kB / 410.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005075/0.2702, allocations: 312.2 kB / 410.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2702, allocations: 1.062 kB / 410.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008708/0.2711, allocations: 451.1 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.2711, allocations: 5.688 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2711, allocations: 3.562 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.2715, allocations: 81.92 kB / 411.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.2719, allocations: 82.33 kB / 411.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00288/0.2748, allocations: 2.91 MB / 414.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.2751, allocations: 27.97 kB / 414.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.2752, allocations: 15.56 kB / 414.5 MB, free: 12.61 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.0002881/0.2755, allocations: 158.8 kB / 414.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.916e-05/0.2756, allocations: 49.58 kB / 414.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.2756, allocations: 40.72 kB / 414.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.2756, allocations: 3.844 kB / 414.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.2757, allocations: 5.5 kB / 414.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.2757, allocations: 5.391 kB / 414.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.2771, allocations: 0.8674 MB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2771, allocations: 7.969 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.2773, allocations: 50.47 kB / 415.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002547/0.2776, allocations: 76.89 kB / 415.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.2776, allocations: 11.75 kB / 415.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002613/0.2802, allocations: 2.912 MB / 418.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2802, allocations: 7.438 kB / 418.6 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.2812, allocations: 0.6134 MB / 419.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.2813, allocations: 42.3 kB / 419.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/0.2814, allocations: 6.312 kB / 419.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.2817, allocations: 26.2 kB / 419.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.587e-05/0.2818, allocations: 28.88 kB / 419.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2818, allocations: 10.97 kB / 419.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003105/0.2821, allocations: 273.8 kB / 419.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2821, allocations: 4 kB / 419.6 MB, free: 8.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006336/0.2827, allocations: 118.1 kB / 419.8 MB, free: 8.082 MB / 334.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.001301/0.284, allocations: 1.16 MB / 420.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009426/0.285, allocations: 0.5013 MB / 421.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.285, allocations: 0 / 421.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005909/0.2856, allocations: 390.4 kB / 421.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.2861, allocations: 68.7 kB / 421.9 MB, free: 6.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/0.2919, allocations: 4.194 MB / 426.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.2921, allocations: 239.8 kB / 426.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.2923, allocations: 48.81 kB / 426.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.2925, allocations: 169 kB / 426.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2925, allocations: 0 / 426.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04647/0.339, allocations: 9.932 MB / 436.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.06, allocations: 11.91 kB / 436.5 MB, free: 9.695 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i1 from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable basicTransformer.i2 in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i2 from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable inductor22.i in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable inductor22.i from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.364666231907904]