Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.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.001672/0.001672, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001729/0.001729, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2396, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006067/0.2457, allocations: 4.58 MB / 435.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008399/0.2541, allocations: 5.859 MB / 441.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005568/0.2547, allocations: 63.31 kB / 441.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.2558, allocations: 464.9 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.2576, allocations: 0.8341 MB / 442.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.2586, allocations: 446.4 kB / 443.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003056/0.2617, allocations: 2.048 MB / 445.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.2619, allocations: 103.2 kB / 445.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005582/0.2625, allocations: 390.2 kB / 445.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.2629, allocations: 349.6 kB / 446.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.178e-05/0.263, allocations: 36 kB / 446.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009863/0.264, allocations: 483.6 kB / 446.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.2641, allocations: 111.2 kB / 446.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.2644, allocations: 325.8 kB / 447.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.2659, allocations: 1.303 MB / 448.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2659, allocations: 0 / 448.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2659, allocations: 0 / 448.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.2659, allocations: 0 / 448.4 MB, free: 5.223 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001961/0.2679, allocations: 1.419 MB / 449.8 MB, free: 3.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2679, allocations: 12.03 kB / 449.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.268, allocations: 58.55 kB / 449.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.2683, allocations: 151.1 kB / 450 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.2695, allocations: 0.7639 MB / 450.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2695, allocations: 16.44 kB / 450.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.2695, allocations: 27.95 kB / 450.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005738/0.2701, allocations: 366.7 kB / 451.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2701, allocations: 0 / 451.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/0.2702, allocations: 8 kB / 451.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2702, allocations: 7.938 kB / 451.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.2706, allocations: 259.6 kB / 451.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.2723, allocations: 1.015 MB / 452.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.2728, allocations: 256.8 kB / 452.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004941/0.2732, allocations: 303.3 kB / 453 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007319/0.274, allocations: 165.4 kB / 453.2 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.274, allocations: 30.56 kB / 453.2 MB, free: 212 kB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.774e-06/0.274, allocations: 4 kB / 453.2 MB, free: 208 kB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002945/0.277, allocations: 1.493 MB / 454.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/0.277, allocations: 114.8 kB / 454.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.278, allocations: 0.9418 MB / 455.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.2781, allocations: 29.7 kB / 455.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.2784, allocations: 357.8 kB / 456.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2785, allocations: 138.8 kB / 456.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.2787, allocations: 117.7 kB / 456.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2788, allocations: 321.9 kB / 456.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002711/0.2791, allocations: 158.3 kB / 456.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.2794, allocations: 227 kB / 457.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.2808, allocations: 0.7492 MB / 457.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2808, allocations: 0 / 457.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001014/0.2819, allocations: 0.5955 MB / 458.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.2819, allocations: 41.72 kB / 458.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.2819, allocations: 16 kB / 458.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000227/0.2822, allocations: 69.67 kB / 458.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.2824, allocations: 43.91 kB / 458.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/0.2851, allocations: 3.121 MB / 461.7 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.2854, allocations: 16.02 kB / 461.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.2855, allocations: 20 kB / 461.8 MB, free: 7.211 MB / 366.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = \"V\" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003984/0.2859, allocations: 256 kB / 462 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.286, allocations: 131.1 kB / 462.1 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.2873, allocations: 0.7014 MB / 462.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.2873, allocations: 4 kB / 462.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2873, allocations: 0 / 462.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.2874, allocations: 7.984 kB / 462.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.2881, allocations: 0.5528 MB / 463.4 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-05/0.2881, allocations: 19.92 kB / 463.4 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.2883, allocations: 31.92 kB / 463.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.2885, allocations: 69.67 kB / 463.5 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.2885, allocations: 19.98 kB / 463.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/0.2911, allocations: 3.109 MB / 466.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2911, allocations: 0 / 466.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.2925, allocations: 0.9447 MB / 467.6 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004361/0.2929, allocations: 197 kB / 467.8 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.293, allocations: 8 kB / 467.8 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.2933, allocations: 19.92 kB / 467.8 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.605e-05/0.2934, allocations: 27.95 kB / 467.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/0.2934, allocations: 20 kB / 467.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007783/0.2942, allocations: 0.6256 MB / 468.5 MB, free: 124 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2942, allocations: 0 / 468.5 MB, free: 124 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000805/0.295, allocations: 231.6 kB / 468.7 MB, free: 15.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * 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 (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002161/0.2972, allocations: 1.69 MB / 470.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.2984, allocations: 0.8158 MB / 471.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2984, allocations: 4 kB / 471.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.2991, allocations: 0.6416 MB / 471.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006087/0.2997, allocations: 108.7 kB / 472 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007793/0.3075, allocations: 5.947 MB / 477.9 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.3079, allocations: 413 kB / 478.3 MB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.3082, allocations: 93.64 kB / 478.4 MB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.3085, allocations: 283.3 kB / 478.7 MB, free: 5.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3085, allocations: 0 / 478.7 MB, free: 5.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05678/0.3653, allocations: 18.57 MB / 497.3 MB, free: 3.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.9, allocations: 8 kB / 497.3 MB, free: 3.129 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.467363619012758]