Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001045/0.001045, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00119/0.00119, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9824/0.9824, allocations: 177.2 MB / 205 MB, free: 5.305 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.718e-05, allocations: 4.984 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00416/0.004187, allocations: 3.509 MB / 276.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.005746, allocations: 0.8295 MB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.005972, allocations: 11.94 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.006173, allocations: 63.3 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.006446, allocations: 146.6 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.006851, allocations: 139.7 kB / 277.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005209/0.007372, allocations: 0.5209 MB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.007578, allocations: 99.61 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004234/0.008001, allocations: 291.3 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.008221, allocations: 151.6 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/0.008281, allocations: 40 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.703e-05/0.008378, allocations: 44 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.516e-05/0.008443, allocations: 95.59 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.008589, allocations: 159.6 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004208/0.009009, allocations: 338.8 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.009015, allocations: 0 / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.009016, allocations: 0 / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.009026, allocations: 0 / 279.4 MB, free: 10.95 MB / 266.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.001188/0.01021, allocations: 0.7605 MB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.01026, allocations: 8.031 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.01055, allocations: 104.6 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.01091, allocations: 272.4 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.01093, allocations: 21.03 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.01096, allocations: 36.38 kB / 280.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.01137, allocations: 380.4 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.01138, allocations: 192 / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.0114, allocations: 16.38 kB / 281 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.01141, allocations: 11.94 kB / 281 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.01161, allocations: 131.8 kB / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.01289, allocations: 1.397 MB / 282.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.01316, allocations: 175 kB / 282.7 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.295e-05/0.01324, allocations: 56.42 kB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.01326, allocations: 8 kB / 282.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.01329, allocations: 41.39 kB / 282.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.01329, allocations: 0 / 282.8 MB, free: 7.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007318/0.01403, allocations: 371.7 kB / 283.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.01405, allocations: 55.41 kB / 283.2 MB, free: 6.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.01428, allocations: 342.1 kB / 283.5 MB, free: 6.535 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.0143, allocations: 33.7 kB / 283.6 MB, free: 6.496 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.01441, allocations: 263.1 kB / 283.8 MB, free: 6.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.01445, allocations: 79.31 kB / 283.9 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.01451, allocations: 51.36 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.01466, allocations: 0.5079 MB / 284.5 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.814e-05/0.01472, allocations: 35.97 kB / 284.5 MB, free: 5.543 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.887e-05/0.01482, allocations: 94.41 kB / 284.6 MB, free: 5.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.015, allocations: 134.3 kB / 284.7 MB, free: 5.277 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.015, allocations: 4 kB / 284.7 MB, free: 5.273 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003363/0.01534, allocations: 268.2 kB / 285 MB, free: 4.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.01535, allocations: 8 kB / 285 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.01536, allocations: 3.938 kB / 285 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002568/0.01561, allocations: 106.9 kB / 285.1 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.691e-05/0.01571, allocations: 28.05 kB / 285.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.174/0.1897, allocations: 6.183 MB / 291.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.1899, allocations: 22.16 kB / 291.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.1899, allocations: 8.031 kB / 291.3 MB, free: 23.54 MB / 266.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 0.0001262/0.1901, allocations: 170.5 kB / 291.5 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/0.1901, allocations: 42.59 kB / 291.6 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.1902, allocations: 34.38 kB / 291.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1902, allocations: 3.156 kB / 291.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1902, allocations: 4.5 kB / 291.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.1902, allocations: 7.906 kB / 291.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.1905, allocations: 259.9 kB / 291.9 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1905, allocations: 4.125 kB / 291.9 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.1905, allocations: 18.06 kB / 291.9 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002483/0.1908, allocations: 100.7 kB / 292 MB, free: 23.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.1908, allocations: 5.656 kB / 292 MB, free: 23.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/0.1929, allocations: 6.181 MB / 298.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.1929, allocations: 1.484 kB / 298.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003377/0.1932, allocations: 375.7 kB / 298.5 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.448e-05/0.1933, allocations: 54.48 kB / 298.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.1933, allocations: 6.922 kB / 298.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1935, allocations: 19.39 kB / 298.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.319e-05/0.1936, allocations: 28.67 kB / 298.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.1936, allocations: 9.641 kB / 298.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001534/0.1937, allocations: 230.2 kB / 298.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1937, allocations: 1.125 kB / 298.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000639/0.1944, allocations: 116.3 kB / 299 MB, free: 16.98 MB / 266.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 9.915e-05/0.1945, allocations: 102.1 kB / 299.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.195, allocations: 0.6647 MB / 299.7 MB, free: 16.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.195, allocations: 0.9688 kB / 299.7 MB, free: 16.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002723/0.1953, allocations: 0.6064 MB / 300.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.1956, allocations: 51.8 kB / 300.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.1968, allocations: 0.6189 MB / 301 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.344e-05/0.1969, allocations: 103.3 kB / 301.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.919e-05/0.197, allocations: 16.69 kB / 301.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.749e-05/0.197, allocations: 27.38 kB / 301.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of SimCode: time 1.383e-06/0.197, allocations: 0 / 301.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of Templates: time 0.009271/0.2063, allocations: 5.24 MB / 306.4 MB, free: 14.47 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8566985968500376]