Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009531/0.0009531, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008941/0.0008941, allocations: 169.5 kB / 24.91 MB, free: 8.773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9836/0.9836, allocations: 177 MB / 205.2 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] 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.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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.579e-05, allocations: 6.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.01105/0.01108, allocations: 3.499 MB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.01301, allocations: 0.8565 MB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.01323, allocations: 11.94 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.01344, allocations: 71.28 kB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003406/0.01684, allocations: 142.6 kB / 278 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.01732, allocations: 139.7 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007027/0.01802, allocations: 0.5324 MB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.01824, allocations: 108.2 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004297/0.01867, allocations: 299.3 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.0189, allocations: 151.6 kB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.939e-05/0.01896, allocations: 40 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.01907, allocations: 44 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.01914, allocations: 91.59 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.01928, allocations: 155.6 kB / 279.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00366/0.02294, allocations: 342.8 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.02295, allocations: 0 / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.02295, allocations: 0 / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.02296, allocations: 0 / 279.9 MB, free: 10.68 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.001032/0.02399, allocations: 0.6435 MB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.02405, allocations: 8.031 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003536/0.0244, allocations: 84.86 kB / 280.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.02482, allocations: 233.6 kB / 280.8 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.02485, allocations: 25.03 kB / 280.9 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.02489, allocations: 32.38 kB / 280.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.02536, allocations: 357 kB / 281.3 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.02538, allocations: 192 / 281.3 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.02541, allocations: 16.36 kB / 281.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.02542, allocations: 11.94 kB / 281.3 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.0256, allocations: 92.48 kB / 281.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.02707, allocations: 1.023 MB / 282.4 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.02733, allocations: 142.5 kB / 282.5 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.735e-05/0.02741, allocations: 40.84 kB / 282.6 MB, free: 7.824 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.02744, allocations: 4 kB / 282.6 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.02747, allocations: 42.48 kB / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.775e-06/0.02747, allocations: 0 / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008608/0.02834, allocations: 297.5 kB / 282.9 MB, free: 7.465 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.02837, allocations: 55.41 kB / 283 MB, free: 7.398 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.02861, allocations: 274.9 kB / 283.2 MB, free: 7.117 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.02864, allocations: 29.7 kB / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.02875, allocations: 193 kB / 283.5 MB, free: 6.891 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.02881, allocations: 83.31 kB / 283.5 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.474e-05/0.02889, allocations: 49.67 kB / 283.6 MB, free: 6.754 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.02902, allocations: 342.7 kB / 283.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.541e-05/0.02909, allocations: 35.92 kB / 283.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.9e-05/0.02918, allocations: 64.25 kB / 284 MB, free: 6.297 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.02934, allocations: 108.1 kB / 284.1 MB, free: 6.176 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.02934, allocations: 4 kB / 284.1 MB, free: 6.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003541/0.02969, allocations: 211.9 kB / 284.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.02972, allocations: 8 kB / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.02972, allocations: 3.984 kB / 284.3 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/0.03001, allocations: 82.5 kB / 284.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.03014, allocations: 35.92 kB / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.03312, allocations: 4.158 MB / 288.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.03328, allocations: 23.83 kB / 288.6 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.03329, allocations: 8 kB / 288.6 MB, free: 1.367 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 (With_Ron_Goff_Vknee.off,With_Ron_Goff.off,Ideal.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.0001315/0.03343, allocations: 121.8 kB / 288.8 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.03348, allocations: 35.91 kB / 288.8 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.03353, allocations: 35.17 kB / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.03353, allocations: 0 / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.03354, allocations: 0 / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.03354, allocations: 0 / 288.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.03382, allocations: 185.7 kB / 289 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.03382, allocations: 0 / 289 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-05/0.0339, allocations: 23.98 kB / 289 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.03411, allocations: 86.48 kB / 289.1 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.03413, allocations: 4 kB / 289.1 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00265/0.03678, allocations: 4.151 MB / 293.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.03678, allocations: 0 / 293.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.03709, allocations: 266.6 kB / 293.5 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.23e-05/0.03718, allocations: 31.75 kB / 293.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.03721, allocations: 8.094 kB / 293.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.03737, allocations: 19.98 kB / 293.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.03745, allocations: 27.94 kB / 293.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.03747, allocations: 8 kB / 293.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001126/0.03758, allocations: 100.6 kB / 293.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03758, allocations: 0 / 293.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007347/0.03831, allocations: 123.7 kB / 293.9 MB, free: 11.84 MB / 282.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 0.0001399/0.03845, allocations: 92.44 kB / 293.9 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.0391, allocations: 480.4 kB / 294.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/0.03911, allocations: 4 kB / 294.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003639/0.03947, allocations: 448.4 kB / 294.9 MB, free: 10.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.0398, allocations: 57.16 kB / 294.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.04126, allocations: 0.6117 MB / 295.5 MB, free: 10.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.936e-05/0.04136, allocations: 100.6 kB / 295.6 MB, free: 9.941 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.04146, allocations: 22.3 kB / 295.6 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.04163, allocations: 107.3 kB / 295.7 MB, free: 9.812 MB / 282.7 MB Notification: Performance of SimCode: time 2.124e-06/0.04163, allocations: 4 kB / 295.7 MB, free: 9.809 MB / 282.7 MB Notification: Performance of Templates: time 0.01078/0.05241, allocations: 5.22 MB / 301 MB, free: 4.668 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.841095859184861]