Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001657/0.001657, allocations: 115.9 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.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.002044/0.002044, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2579, allocations: 53.35 MB / 431.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005561/0.2634, allocations: 4.155 MB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.2653, allocations: 0.9619 MB / 436.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000262/0.2656, allocations: 11.94 kB / 436.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.2658, allocations: 91.08 kB / 436.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.2662, allocations: 198.4 kB / 436.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.2666, allocations: 159.7 kB / 436.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007014/0.2673, allocations: 0.6693 MB / 437.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002658/0.2676, allocations: 147.7 kB / 437.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003614/0.2679, allocations: 271 kB / 437.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003914/0.2683, allocations: 298.7 kB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.299e-05/0.2684, allocations: 56 kB / 438.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2685, allocations: 56 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.2686, allocations: 135.4 kB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.2689, allocations: 302.5 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007315/0.2696, allocations: 0.6577 MB / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2697, allocations: 0 / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2697, allocations: 0 / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.2697, allocations: 0 / 439.3 MB, free: 14.68 MB / 350.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.001398/0.2711, allocations: 0.8008 MB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2711, allocations: 16.03 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.2712, allocations: 99.95 kB / 440.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.2715, allocations: 84.5 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.2721, allocations: 330 kB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.2721, allocations: 41.62 kB / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/0.2722, allocations: 52.38 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008155/0.273, allocations: 0.4956 MB / 441.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.273, allocations: 0 / 441.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.3e-05/0.2731, allocations: 20 kB / 441.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.2731, allocations: 12 kB / 441.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006509/0.2737, allocations: 344.4 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.2765, allocations: 1.673 MB / 443.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.277, allocations: 249.1 kB / 443.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.2772, allocations: 125.7 kB / 443.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.2772, allocations: 8 kB / 443.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.2773, allocations: 46.48 kB / 443.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.2773, allocations: 0 / 443.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001921/0.2792, allocations: 0.8267 MB / 444.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.2793, allocations: 81.11 kB / 444.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.2797, allocations: 389.6 kB / 444.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.2797, allocations: 33.7 kB / 445 MB, free: 8.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.28, allocations: 316 kB / 445.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.002e-05/0.2801, allocations: 115 kB / 445.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.2802, allocations: 66.14 kB / 445.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.2803, allocations: 354.8 kB / 445.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.2805, allocations: 96.83 kB / 445.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.2808, allocations: 198.6 kB / 446.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.2813, allocations: 307 kB / 446.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2813, allocations: 4 kB / 446.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008315/0.2822, allocations: 448 kB / 446.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.2822, allocations: 12.3 kB / 446.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2822, allocations: 4 kB / 446.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.2825, allocations: 81.59 kB / 446.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.2828, allocations: 79.91 kB / 447 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.2856, allocations: 2.936 MB / 450 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.2859, allocations: 19.89 kB / 450 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.286, allocations: 16 kB / 450 MB, free: 3.383 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.0002409/0.2862, allocations: 161.8 kB / 450.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.2863, allocations: 47.64 kB / 450.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.939e-05/0.2864, allocations: 51.47 kB / 450.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2864, allocations: 4 kB / 450.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2864, allocations: 0 / 450.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2864, allocations: 3.984 kB / 450.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.2879, allocations: 0.9238 MB / 451.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2879, allocations: 0 / 451.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.2881, allocations: 47.91 kB / 451.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002866/0.2884, allocations: 85.59 kB / 451.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.2884, allocations: 4 kB / 451.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.2912, allocations: 2.924 MB / 454.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2912, allocations: 0 / 454.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009777/0.2922, allocations: 0.606 MB / 454.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.2923, allocations: 47.69 kB / 454.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.2923, allocations: 7.984 kB / 454.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.2927, allocations: 31.98 kB / 454.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.522e-05/0.2928, allocations: 27.89 kB / 454.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.2928, allocations: 8 kB / 455 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.2931, allocations: 279.2 kB / 455.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2931, allocations: 0 / 455.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.2937, allocations: 116 kB / 455.3 MB, free: 13.7 MB / 366.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.00126/0.295, allocations: 1.168 MB / 456.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009287/0.2959, allocations: 0.4971 MB / 457 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2959, allocations: 0 / 457 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000618/0.2965, allocations: 377.8 kB / 457.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.2971, allocations: 70.59 kB / 457.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006348/0.3034, allocations: 4.229 MB / 461.7 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000519/0.3039, allocations: 0.8431 MB / 462.5 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.3041, allocations: 47.28 kB / 462.6 MB, free: 6.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.3044, allocations: 171.4 kB / 462.7 MB, free: 6.043 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3044, allocations: 112 / 462.7 MB, free: 6.043 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04932/0.3537, allocations: 9.385 MB / 472.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.19, allocations: 10.62 kB / 472.1 MB, free: 12.83 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.022988016018644]