Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 109.4 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002087/0.002088, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.712/1.712, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 45.8 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1737, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.007038/0.1808, allocations: 2.176 MB / 352.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.1825, allocations: 0.5493 MB / 352.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.1827, allocations: 4 kB / 352.8 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.183, allocations: 19.86 kB / 352.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.1833, allocations: 39.67 kB / 352.8 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000314/0.1836, allocations: 35.91 kB / 352.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.1839, allocations: 147.3 kB / 353 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.1842, allocations: 53.44 kB / 353.1 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.1844, allocations: 51.8 kB / 353.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1846, allocations: 63.7 kB / 353.2 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.198e-05/0.1847, allocations: 8 kB / 353.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.1848, allocations: 15.98 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.1848, allocations: 27.86 kB / 353.2 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.185, allocations: 63.67 kB / 353.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.1853, allocations: 127.9 kB / 353.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1853, allocations: 3.938 kB / 353.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1853, allocations: 0 / 353.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1853, allocations: 0 / 353.4 MB, free: 1.465 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000978/0.1863, allocations: 443.2 kB / 353.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.1864, allocations: 8.031 kB / 353.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.1866, allocations: 20.75 kB / 353.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.187, allocations: 204.1 kB / 354.1 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.187, allocations: 8.609 kB / 354.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.1871, allocations: 12.38 kB / 354.1 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/0.1875, allocations: 115.8 kB / 354.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1875, allocations: 4 kB / 354.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.1876, allocations: 11.94 kB / 354.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1876, allocations: 0 / 354.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.188, allocations: 92.58 kB / 354.3 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.1895, allocations: 0.6017 MB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.19, allocations: 86.61 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.1902, allocations: 28.97 kB / 355 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.1902, allocations: 4 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.1903, allocations: 38.5 kB / 355.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.455e-06/0.1903, allocations: 0 / 355.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.001156/0.1915, allocations: 255.4 kB / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.1916, allocations: 55.34 kB / 355.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.1918, allocations: 145.8 kB / 355.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.1918, allocations: 29.7 kB / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.192, allocations: 124 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.192, allocations: 23.66 kB / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.1921, allocations: 21.72 kB / 355.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1923, allocations: 318.8 kB / 356 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.1924, allocations: 27.98 kB / 356.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1926, allocations: 42.56 kB / 356.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.1928, allocations: 66.5 kB / 356.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1928, allocations: 0 / 356.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005235/0.1934, allocations: 142.3 kB / 356.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.1934, allocations: 7.938 kB / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1934, allocations: 0 / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003025/0.1938, allocations: 40.78 kB / 356.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.553e-05/0.1939, allocations: 11.98 kB / 356.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/0.1963, allocations: 1.515 MB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.1965, allocations: 11.84 kB / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1965, allocations: 4 kB / 357.9 MB, free: 12.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001964/0.1967, allocations: 122 kB / 358 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.1968, allocations: 11.91 kB / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.1968, allocations: 12.66 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1969, allocations: 3.938 kB / 358 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.1969, allocations: 8 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1969, allocations: 0 / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.1973, allocations: 209.6 kB / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1973, allocations: 0 / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.1974, allocations: 7.984 kB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002245/0.1976, allocations: 36.83 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1977, allocations: 3.984 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.1999, allocations: 1.514 MB / 359.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1999, allocations: 0 / 359.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000486/0.2004, allocations: 216.2 kB / 360 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-05/0.2005, allocations: 89 kB / 360.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.2005, allocations: 3.938 kB / 360.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.2007, allocations: 4 kB / 360.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/0.2008, allocations: 11.98 kB / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.2008, allocations: 0 / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.2009, allocations: 114 kB / 360.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2009, allocations: 0 / 360.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006795/0.2016, allocations: 39.94 kB / 360.3 MB, free: 9.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001884/0.2018, allocations: 105.9 kB / 360.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006723/0.2025, allocations: 186.5 kB / 360.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/0.2025, allocations: 12.06 kB / 360.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.2029, allocations: 146.7 kB / 360.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.2034, allocations: 11.98 kB / 360.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.2045, allocations: 368.5 kB / 361.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.205, allocations: 0.7043 MB / 361.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/0.205, allocations: 11.44 kB / 361.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.205, allocations: 0 / 361.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Templates: time 0.00624/0.2113, allocations: 1.887 MB / 363.7 MB, free: 6.434 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches