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.001044/0.001044, allocations: 83.67 kB / 21.7 MB, free: 2.848 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.001323/0.001323, allocations: 159.8 kB / 24.99 MB, free: 8.844 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 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.594 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.793e-06/1.793e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.966e-05/2.145e-05, allocations: 5.266 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004408/0.004429, allocations: 3.489 MB / 276.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.00566, allocations: 0.8295 MB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.005813, allocations: 7.938 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.005992, allocations: 71.3 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.00617, allocations: 146.6 kB / 277.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.006528, allocations: 135.8 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003822/0.006911, allocations: 0.5363 MB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.007094, allocations: 103.6 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.007391, allocations: 291.4 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.007554, allocations: 159.5 kB / 278.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.0076, allocations: 36 kB / 278.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.377e-05/0.007674, allocations: 47.98 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.125e-05/0.007725, allocations: 95.66 kB / 278.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.007831, allocations: 151.6 kB / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.008141, allocations: 342.7 kB / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.008143, allocations: 0 / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.008144, allocations: 0 / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.008149, allocations: 0 / 279.4 MB, free: 11.3 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.0007499/0.008899, allocations: 0.7566 MB / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.008935, allocations: 8.031 kB / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.009156, allocations: 104.6 kB / 280.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.009433, allocations: 276.4 kB / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.009451, allocations: 21.03 kB / 280.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.009485, allocations: 36.38 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.009864, allocations: 376.5 kB / 281 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.009876, allocations: 4.125 kB / 281 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.009901, allocations: 16.38 kB / 281 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.009912, allocations: 11.94 kB / 281 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.01013, allocations: 139.8 kB / 281.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.0113, allocations: 1.389 MB / 282.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.01153, allocations: 167 kB / 282.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.01161, allocations: 59.66 kB / 282.8 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.01163, allocations: 4 kB / 282.8 MB, free: 7.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.01165, allocations: 45.39 kB / 282.8 MB, free: 7.691 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.01165, allocations: 0 / 282.8 MB, free: 7.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007039/0.01236, allocations: 373.8 kB / 283.2 MB, free: 7.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.01238, allocations: 51.41 kB / 283.2 MB, free: 7.246 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.01259, allocations: 338.2 kB / 283.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.01261, allocations: 33.7 kB / 283.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.01271, allocations: 263.1 kB / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.01275, allocations: 75.33 kB / 283.9 MB, free: 6.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.665e-05/0.01281, allocations: 55.36 kB / 284 MB, free: 6.457 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.01293, allocations: 0.5079 MB / 284.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.983e-05/0.013, allocations: 43.91 kB / 284.5 MB, free: 5.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.964e-05/0.01309, allocations: 90.41 kB / 284.6 MB, free: 5.785 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.01324, allocations: 134.3 kB / 284.7 MB, free: 5.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01325, allocations: 0 / 284.7 MB, free: 5.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003361/0.01358, allocations: 284.3 kB / 285 MB, free: 5.336 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.0136, allocations: 6.812 kB / 285 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.0136, allocations: 3.984 kB / 285 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.01384, allocations: 103 kB / 285.1 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.29e-05/0.01393, allocations: 31.92 kB / 285.2 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.01665, allocations: 6.178 MB / 291.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.966e-05/0.01674, allocations: 27.78 kB / 291.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.01675, allocations: 8 kB / 291.4 MB, free: 14.61 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.0001141/0.01687, allocations: 176.6 kB / 291.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.01691, allocations: 39.81 kB / 291.6 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.01694, allocations: 39.17 kB / 291.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.01695, allocations: 4 kB / 291.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.01695, allocations: 0 / 291.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.01695, allocations: 0 / 291.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.01716, allocations: 268.3 kB / 291.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01716, allocations: 0 / 291.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.016e-05/0.01721, allocations: 15.98 kB / 291.9 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/0.0174, allocations: 107 kB / 292 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.01741, allocations: 4 kB / 292 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/0.01984, allocations: 6.179 MB / 298.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01984, allocations: 0 / 298.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.02014, allocations: 379.3 kB / 298.6 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.588e-05/0.02023, allocations: 51.72 kB / 298.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.02027, allocations: 7.984 kB / 298.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.02039, allocations: 15.98 kB / 298.6 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.02046, allocations: 31.98 kB / 298.7 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.02047, allocations: 7.938 kB / 298.7 MB, free: 6.852 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001381/0.0206, allocations: 235 kB / 298.9 MB, free: 6.625 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0206, allocations: 0 / 298.9 MB, free: 6.625 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004025/0.02101, allocations: 119.7 kB / 299 MB, free: 6.508 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 9.208e-05/0.0211, allocations: 111.1 kB / 299.1 MB, free: 6.391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005056/0.0216, allocations: 0.6534 MB / 299.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02161, allocations: 0 / 299.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.02191, allocations: 0.6139 MB / 300.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.02217, allocations: 57.88 kB / 300.4 MB, free: 4.953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.02317, allocations: 0.6105 MB / 301.1 MB, free: 4.316 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.785e-05/0.02324, allocations: 96.61 kB / 301.2 MB, free: 4.203 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.165e-05/0.0233, allocations: 22.28 kB / 301.2 MB, free: 4.184 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.02334, allocations: 24.5 kB / 301.2 MB, free: 4.16 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02335, allocations: 4 kB / 301.2 MB, free: 4.156 MB / 282.7 MB Notification: Performance of Templates: time 0.1044/0.1277, allocations: 4.997 MB / 306.2 MB, free: 41.18 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 -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.9818277340382338]