Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|D1.pin|D3.n.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 70.72 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 50.54 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.00558/0.1105, allocations: 5.207 MB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007894/0.1184, allocations: 6.666 MB / 370.8 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008017/0.1192, allocations: 39.69 kB / 370.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.1207, allocations: 0.5045 MB / 371.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002671/0.1235, allocations: 0.7991 MB / 372.1 MB, free: 40 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1677/0.2912, allocations: 445.7 kB / 372.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004888/0.2961, allocations: 2.04 MB / 374.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004826/0.2966, allocations: 168 kB / 374.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007788/0.2974, allocations: 363.7 kB / 375.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007315/0.2982, allocations: 343.6 kB / 375.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.2983, allocations: 30.94 kB / 375.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.3, allocations: 0.4912 MB / 376 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.3001, allocations: 113.6 kB / 376.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004821/0.3006, allocations: 444.9 kB / 376.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.3025, allocations: 1.283 MB / 377.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3025, allocations: 1.188 kB / 377.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3025, allocations: 0 / 377.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.3025, allocations: 0.6094 kB / 377.8 MB, free: 9.668 MB / 302.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.002498/0.3051, allocations: 1.441 MB / 379.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3051, allocations: 9.938 kB / 379.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004344/0.3055, allocations: 139.2 kB / 379.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.3071, allocations: 0.8553 MB / 380.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.3072, allocations: 16.47 kB / 380.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.51e-05/0.3073, allocations: 27.53 kB / 380.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007132/0.308, allocations: 311 kB / 380.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.308, allocations: 0 / 380.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.3081, allocations: 7.234 kB / 380.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.3081, allocations: 9.281 kB / 380.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.3086, allocations: 231.2 kB / 380.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.3108, allocations: 1.118 MB / 381.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.3113, allocations: 243.7 kB / 382.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005187/0.3118, allocations: 303.5 kB / 382.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008437/0.3127, allocations: 0.8302 MB / 383.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.3127, allocations: 45.48 kB / 383.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.054e-06/0.3127, allocations: 0 / 383.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002757/0.3155, allocations: 1.552 MB / 384.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.3156, allocations: 113.1 kB / 385 MB, free: 5.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.3169, allocations: 0.9329 MB / 385.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.3169, allocations: 30.98 kB / 386 MB, free: 5.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.3172, allocations: 354.2 kB / 386.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.463e-05/0.3173, allocations: 135.5 kB / 386.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.3175, allocations: 115.5 kB / 386.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.994e-05/0.3175, allocations: 325.9 kB / 386.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.3178, allocations: 129 kB / 387 MB, free: 4.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.3181, allocations: 158.5 kB / 387.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.3194, allocations: 0.7321 MB / 387.9 MB, free: 3.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3194, allocations: 0 / 387.9 MB, free: 3.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008543/0.3203, allocations: 0.552 MB / 388.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.3203, allocations: 48.34 kB / 388.5 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.3204, allocations: 13.08 kB / 388.5 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/0.3206, allocations: 70.23 kB / 388.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.3208, allocations: 47.88 kB / 388.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.3228, allocations: 3.321 MB / 391.9 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.3232, allocations: 20.98 kB / 392 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/0.3232, allocations: 20.05 kB / 392 MB, free: 240 kB / 302.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.0004088/0.3237, allocations: 251.5 kB / 392.2 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.3239, allocations: 122.8 kB / 392.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.3254, allocations: 0.6643 MB / 393 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.3254, allocations: 3.5 kB / 393 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3254, allocations: 1.719 kB / 393 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3254, allocations: 2.453 kB / 393 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.3265, allocations: 0.6194 MB / 393.6 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.728e-05/0.3265, allocations: 20.66 kB / 393.7 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.3267, allocations: 34.08 kB / 393.7 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.3269, allocations: 68.42 kB / 393.8 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.3269, allocations: 15.06 kB / 393.8 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.3297, allocations: 3.34 MB / 397.1 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3297, allocations: 0 / 397.1 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.3311, allocations: 0.8589 MB / 398 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004916/0.3316, allocations: 273.4 kB / 398.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3317, allocations: 10.42 kB / 398.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.332, allocations: 19 kB / 398.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3321, allocations: 29.2 kB / 398.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.254e-05/0.3322, allocations: 18.09 kB / 398.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008835/0.333, allocations: 0.6301 MB / 399 MB, free: 11.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3331, allocations: 0 / 399 MB, free: 11.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008823/0.3339, allocations: 224.3 kB / 399.2 MB, free: 11.02 MB / 318.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.0005306/0.3345, allocations: 303 kB / 399.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3356, allocations: 0.7767 MB / 400.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3356, allocations: 4.062 kB / 400.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000607/0.3362, allocations: 0.6176 MB / 400.9 MB, free: 9.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.3368, allocations: 120.4 kB / 401 MB, free: 9.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.3389, allocations: 1.574 MB / 402.6 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.3393, allocations: 1.008 MB / 403.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.3396, allocations: 90.27 kB / 403.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.305e-05/0.3396, allocations: 49.66 kB / 403.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3397, allocations: 0 / 403.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of Templates: time 0.01577/0.3554, allocations: 8.662 MB / 412.4 MB, free: 1.082 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Graetz/Graetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches