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.001363/0.001363, allocations: 113.2 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.00158/0.00158, allocations: 214.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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001769/0.001769, allocations: 51.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2725, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006368/0.2789, allocations: 5.249 MB / 436.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009178/0.288, allocations: 6.71 MB / 443.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007898/0.2888, allocations: 63.38 kB / 443.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.2903, allocations: 0.5002 MB / 443.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002491/0.2928, allocations: 0.8341 MB / 444.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2941, allocations: 438.4 kB / 444.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003467/0.2975, allocations: 2.044 MB / 447 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.2978, allocations: 103.2 kB / 447.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006705/0.2985, allocations: 394.1 kB / 447.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005838/0.2991, allocations: 349.7 kB / 447.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-05/0.2991, allocations: 32 kB / 447.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.3003, allocations: 0.4917 MB / 448.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.3005, allocations: 111.2 kB / 448.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004972/0.301, allocations: 445 kB / 448.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.303, allocations: 1.291 MB / 450.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.303, allocations: 0 / 450.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.303, allocations: 0 / 450.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.827e-05/0.303, allocations: 0 / 450.1 MB, free: 3.75 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.002509/0.3055, allocations: 1.415 MB / 451.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3056, allocations: 8.031 kB / 451.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.074e-05/0.3057, allocations: 62.48 kB / 451.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003695/0.3061, allocations: 155 kB / 451.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.3073, allocations: 0.7639 MB / 452.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.3074, allocations: 16.44 kB / 452.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.175e-05/0.3074, allocations: 27.95 kB / 452.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.308, allocations: 311.2 kB / 452.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.308, allocations: 0 / 452.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.308, allocations: 12 kB / 452.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.308, allocations: 11.94 kB / 452.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004197/0.3085, allocations: 221.9 kB / 453.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.3105, allocations: 1.065 MB / 454.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.311, allocations: 215.2 kB / 454.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.3115, allocations: 261.6 kB / 454.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008228/0.3123, allocations: 169.4 kB / 454.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.3123, allocations: 30.56 kB / 454.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 2.134e-06/0.3123, allocations: 0 / 454.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.003175/0.3155, allocations: 1.438 MB / 456.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.3156, allocations: 106.8 kB / 456.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.3168, allocations: 0.9379 MB / 457.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.3168, allocations: 33.7 kB / 457.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003337/0.3172, allocations: 353.8 kB / 457.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.3173, allocations: 138.8 kB / 457.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.3175, allocations: 121.7 kB / 458 MB, free: 11.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3177, allocations: 325.9 kB / 458.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.3179, allocations: 120.6 kB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.3182, allocations: 167.6 kB / 458.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.3197, allocations: 0.7414 MB / 459.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3197, allocations: 0 / 459.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001023/0.3208, allocations: 0.5586 MB / 459.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.3208, allocations: 41.62 kB / 459.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.846e-05/0.3208, allocations: 19.98 kB / 459.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/0.3211, allocations: 73.61 kB / 460 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.3213, allocations: 44 kB / 460 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002967/0.3243, allocations: 3.125 MB / 463.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.3246, allocations: 16.02 kB / 463.2 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-05/0.3247, allocations: 20 kB / 463.2 MB, free: 6.105 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.0004916/0.3252, allocations: 262.2 kB / 463.5 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.3254, allocations: 131.1 kB / 463.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.3268, allocations: 0.6646 MB / 464.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3268, allocations: 7.984 kB / 464.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3268, allocations: 0 / 464.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3268, allocations: 0 / 464.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008951/0.3277, allocations: 0.5878 MB / 464.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.163e-05/0.3278, allocations: 23.94 kB / 464.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.3279, allocations: 31.97 kB / 464.9 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002078/0.3282, allocations: 65.67 kB / 465 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.3282, allocations: 20 kB / 465 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002841/0.331, allocations: 3.132 MB / 468.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.331, allocations: 0 / 468.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.3325, allocations: 0.8633 MB / 469 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004525/0.3329, allocations: 197 kB / 469.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.3331, allocations: 11.94 kB / 469.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.3334, allocations: 11.94 kB / 469.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3335, allocations: 35.95 kB / 469.2 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.3335, allocations: 15.98 kB / 469.2 MB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009749/0.3345, allocations: 0.6296 MB / 469.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3345, allocations: 4 kB / 469.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000913/0.3354, allocations: 223.6 kB / 470.1 MB, free: 14.87 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.002384/0.3378, allocations: 1.605 MB / 471.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.3392, allocations: 0.7501 MB / 472.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3392, allocations: 0 / 472.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3403, allocations: 0.597 MB / 473 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.3414, allocations: 124.7 kB / 473.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.3527, allocations: 5.753 MB / 478.9 MB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006756/0.3534, allocations: 1 MB / 479.9 MB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.3537, allocations: 97.64 kB / 480 MB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.354, allocations: 279.3 kB / 480.3 MB, free: 4.316 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.354, allocations: 0 / 480.3 MB, free: 4.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06129/0.4153, allocations: 17.67 MB / 498 MB, free: 2.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.94, allocations: 12.67 kB / 498 MB, free: 2.836 MB / 398.1 MB " [Timeout remaining time 646] (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: 16.70977123104967]