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.001031/0.001031, 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.001591/0.001591, allocations: 161 kB / 24.56 MB, free: 12 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 1.076/1.076, allocations: 177.1 MB / 205 MB, free: 5.637 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 3.026e-06/3.026e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.201e-05/4.504e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004075/0.00412, allocations: 3.505 MB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.005633, allocations: 0.8295 MB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.005847, allocations: 11.94 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.006039, allocations: 63.36 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.006272, allocations: 146.6 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.006714, allocations: 143.7 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.007185, allocations: 0.5208 MB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.007389, allocations: 91.64 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.007767, allocations: 295.3 kB / 278.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.007944, allocations: 155.6 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.769e-05/0.007992, allocations: 40 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.497e-05/0.008077, allocations: 44 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.534e-05/0.008132, allocations: 91.59 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.008257, allocations: 155.6 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.008643, allocations: 342.8 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.008647, allocations: 0 / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.008648, allocations: 0 / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.008654, allocations: 3.938 kB / 279.4 MB, free: 11.11 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.0008545/0.009509, allocations: 0.7566 MB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.009567, allocations: 8.031 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.009887, allocations: 104.6 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.01026, allocations: 264.4 kB / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.01029, allocations: 29.03 kB / 280.5 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.01033, allocations: 32.38 kB / 280.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/0.01077, allocations: 380.4 kB / 280.9 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.01078, allocations: 192 / 280.9 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.01081, allocations: 16.38 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.01082, allocations: 11.94 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.01103, allocations: 135.8 kB / 281.1 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.01238, allocations: 1.393 MB / 282.5 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.01265, allocations: 171 kB / 282.7 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.01274, allocations: 52.48 kB / 282.7 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.01278, allocations: 11.98 kB / 282.7 MB, free: 7.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.01282, allocations: 45.33 kB / 282.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.01282, allocations: 0 / 282.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008415/0.01367, allocations: 371.7 kB / 283.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.0137, allocations: 59.41 kB / 283.2 MB, free: 7.051 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/0.01407, allocations: 338.2 kB / 283.5 MB, free: 6.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.01409, allocations: 29.7 kB / 283.5 MB, free: 6.664 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.01422, allocations: 263.1 kB / 283.8 MB, free: 6.402 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.01427, allocations: 79.33 kB / 283.9 MB, free: 6.324 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-05/0.01434, allocations: 51.36 kB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.01448, allocations: 0.5079 MB / 284.4 MB, free: 5.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.951e-05/0.01455, allocations: 35.97 kB / 284.5 MB, free: 5.711 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.709e-05/0.01465, allocations: 94.34 kB / 284.6 MB, free: 5.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.01481, allocations: 138.3 kB / 284.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.01482, allocations: 0 / 284.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003598/0.01518, allocations: 276.2 kB / 285 MB, free: 5.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.01519, allocations: 8 kB / 285 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.0152, allocations: 3.938 kB / 285 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.01551, allocations: 106.9 kB / 285.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.857e-05/0.01561, allocations: 36.03 kB / 285.1 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.01872, allocations: 6.182 MB / 291.3 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.01883, allocations: 27.97 kB / 291.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.01885, allocations: 8 kB / 291.3 MB, free: 14.41 MB / 282.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.0001214/0.01897, allocations: 176.5 kB / 291.5 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.01902, allocations: 39.81 kB / 291.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.01905, allocations: 35.17 kB / 291.6 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01905, allocations: 0 / 291.6 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.01905, allocations: 3.984 kB / 291.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.01906, allocations: 4.031 kB / 291.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.01928, allocations: 272.3 kB / 291.9 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01928, allocations: 0 / 291.9 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.811e-05/0.01933, allocations: 15.98 kB / 291.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001809/0.01951, allocations: 106.9 kB / 292 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.01952, allocations: 4 kB / 292 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/0.02224, allocations: 6.175 MB / 298.2 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.02225, allocations: 0 / 298.2 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.02257, allocations: 374.6 kB / 298.5 MB, free: 6.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.978e-05/0.02265, allocations: 55.81 kB / 298.6 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.02267, allocations: 4 kB / 298.6 MB, free: 6.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.942e-05/0.02277, allocations: 19.98 kB / 298.6 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.818e-05/0.02284, allocations: 31.88 kB / 298.6 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.02286, allocations: 11.94 kB / 298.6 MB, free: 6.648 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.02299, allocations: 231 kB / 298.9 MB, free: 6.426 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02299, allocations: 0 / 298.9 MB, free: 6.426 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004724/0.02346, allocations: 119.7 kB / 299 MB, free: 6.309 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.0001132/0.02357, allocations: 103.2 kB / 299.1 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005482/0.02412, allocations: 0.655 MB / 299.7 MB, free: 5.488 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.02412, allocations: 3.938 kB / 299.7 MB, free: 5.484 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.02442, allocations: 0.6026 MB / 300.4 MB, free: 4.824 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.02471, allocations: 58.05 kB / 300.4 MB, free: 4.766 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.02583, allocations: 0.62 MB / 301 MB, free: 4.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.989e-05/0.0259, allocations: 96.61 kB / 301.1 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.616e-05/0.02597, allocations: 22.3 kB / 301.1 MB, free: 3.984 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.02602, allocations: 28.48 kB / 301.2 MB, free: 3.957 MB / 282.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02602, allocations: 0 / 301.2 MB, free: 3.957 MB / 282.7 MB Notification: Performance of Templates: time 0.1264/0.1525, allocations: 4.995 MB / 306.2 MB, free: 39.07 MB / 282.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: 3.152104515116662]