Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 183 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.1 MB / 223.7 MB, free: 8.496 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008744/0.0008744, allocations: 107.6 kB / 271.2 MB, free: 8.457 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007462/0.0007463, allocations: 39.94 kB / 327.2 MB, free: 344 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.1774, allocations: 46.61 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003382/0.1808, allocations: 3.487 MB / 377.3 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007903/0.1816, allocations: 0.7834 MB / 378.1 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.1817, allocations: 5.781 kB / 378.1 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1819, allocations: 49.33 kB / 378.1 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.1821, allocations: 110.2 kB / 378.3 MB, free: 42.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.1823, allocations: 101.2 kB / 378.4 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.1827, allocations: 490.8 kB / 378.8 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1828, allocations: 121.3 kB / 378.9 MB, free: 41.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.183, allocations: 178.3 kB / 379.1 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.1832, allocations: 195.5 kB / 379.3 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.1832, allocations: 25.72 kB / 379.3 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.871e-05/0.1833, allocations: 24.78 kB / 379.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.966e-05/0.1833, allocations: 74 kB / 379.4 MB, free: 41.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.1835, allocations: 209.2 kB / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.1838, allocations: 470.3 kB / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1838, allocations: 5.312 kB / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.1838, allocations: 0 / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1838, allocations: 0 / 380.1 MB, free: 41.06 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008692/0.1847, allocations: 0.7198 MB / 380.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1847, allocations: 13.66 kB / 380.8 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.734e-05/0.1848, allocations: 44.16 kB / 380.9 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.185, allocations: 307.9 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1851, allocations: 22.12 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.1851, allocations: 32.88 kB / 381.2 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004732/0.1856, allocations: 357 kB / 381.6 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1856, allocations: 0 / 381.6 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.1856, allocations: 16.12 kB / 381.6 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1857, allocations: 8 kB / 381.6 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004747/0.1861, allocations: 269.1 kB / 381.9 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.1876, allocations: 1.426 MB / 383.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.1879, allocations: 227.4 kB / 383.5 MB, free: 38.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.1881, allocations: 107.8 kB / 383.6 MB, free: 38.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.1881, allocations: 6.484 kB / 383.6 MB, free: 38.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.272e-05/0.1882, allocations: 37.12 kB / 383.7 MB, free: 38.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1882, allocations: 5.375 kB / 383.7 MB, free: 38.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001237/0.1894, allocations: 0.6981 MB / 384.4 MB, free: 37.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.782e-05/0.1894, allocations: 62.06 kB / 384.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.1897, allocations: 300.9 kB / 384.7 MB, free: 37.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.1897, allocations: 30.83 kB / 384.8 MB, free: 37.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.1898, allocations: 211 kB / 385 MB, free: 37.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.1898, allocations: 76.72 kB / 385 MB, free: 37.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.1899, allocations: 47.27 kB / 385.1 MB, free: 37.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.159e-05/0.19, allocations: 337.5 kB / 385.4 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.1902, allocations: 77.98 kB / 385.5 MB, free: 36.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1904, allocations: 122.4 kB / 385.6 MB, free: 36.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.1907, allocations: 209.5 kB / 385.8 MB, free: 36.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1907, allocations: 1.281 kB / 385.8 MB, free: 36.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006033/0.1913, allocations: 360.6 kB / 386.2 MB, free: 36.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1913, allocations: 5.344 kB / 386.2 MB, free: 36.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1913, allocations: 5.188 kB / 386.2 MB, free: 36.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.1917, allocations: 110.1 kB / 386.3 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1918, allocations: 30.77 kB / 386.3 MB, free: 36.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.1941, allocations: 4.457 MB / 390.8 MB, free: 31.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.1943, allocations: 31.77 kB / 390.8 MB, free: 31.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.1943, allocations: 7.938 kB / 390.8 MB, free: 31.72 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.958e-05/0.1944, allocations: 149.7 kB / 391 MB, free: 31.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.673e-05/0.1945, allocations: 35.62 kB / 391 MB, free: 31.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.1946, allocations: 35.17 kB / 391 MB, free: 31.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1946, allocations: 8.062 kB / 391 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.1946, allocations: 0 / 391 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1946, allocations: 3.984 kB / 391 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.1948, allocations: 373.3 kB / 391.4 MB, free: 31.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1949, allocations: 0 / 391.4 MB, free: 31.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.195, allocations: 27.97 kB / 391.4 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002545/0.1952, allocations: 110.4 kB / 391.5 MB, free: 30.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.1952, allocations: 4 kB / 391.5 MB, free: 30.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002027/0.1973, allocations: 4.441 MB / 396 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1973, allocations: 3.984 kB / 396 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.198, allocations: 1.086 MB / 397.1 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/0.1981, allocations: 124.7 kB / 397.2 MB, free: 24.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.1981, allocations: 4 kB / 397.2 MB, free: 24.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.1983, allocations: 27.97 kB / 397.2 MB, free: 24.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.1984, allocations: 31.89 kB / 397.3 MB, free: 24.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1984, allocations: 8 kB / 397.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001374/0.1986, allocations: 223 kB / 397.5 MB, free: 24.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1986, allocations: 0 / 397.5 MB, free: 24.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006304/0.1992, allocations: 111.8 kB / 397.6 MB, free: 24.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 8.37e-05/0.1993, allocations: 110.8 kB / 397.7 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006022/0.1999, allocations: 0.5697 MB / 398.3 MB, free: 23.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1999, allocations: 0 / 398.3 MB, free: 23.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003413/0.2003, allocations: 488 kB / 398.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.2007, allocations: 49.58 kB / 398.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/0.2016, allocations: 0.9482 MB / 399.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.2017, allocations: 0.8013 MB / 400.5 MB, free: 21.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.303e-05/0.2018, allocations: 26.97 kB / 400.6 MB, free: 21.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.2019, allocations: 23.42 kB / 400.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2019, allocations: 0 / 400.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of Templates: time 0.006611/0.2085, allocations: 5.115 MB / 405.7 MB, free: 16.15 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches