Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001224, allocations: 106.2 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009859/0.0009861, allocations: 39.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3123, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004123/0.3165, allocations: 3.514 MB / 403 MB, free: 29.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.3178, allocations: 0.7448 MB / 403.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.318, allocations: 11.94 kB / 403.7 MB, free: 29.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.3183, allocations: 47.61 kB / 403.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.3185, allocations: 119 kB / 403.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.3189, allocations: 87.91 kB / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004261/0.3193, allocations: 497.5 kB / 404.5 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.3196, allocations: 127.9 kB / 404.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.3198, allocations: 171.3 kB / 404.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.32, allocations: 203 kB / 405 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.3201, allocations: 24 kB / 405 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.896e-05/0.3202, allocations: 24 kB / 405 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.736e-05/0.3202, allocations: 75.62 kB / 405.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.3204, allocations: 206.9 kB / 405.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.3208, allocations: 470.2 kB / 405.7 MB, free: 27.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3208, allocations: 0 / 405.7 MB, free: 27.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.3208, allocations: 4 kB / 405.7 MB, free: 27.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.3208, allocations: 0 / 405.7 MB, free: 27.07 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.001108/0.3219, allocations: 0.7129 MB / 406.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.322, allocations: 12.03 kB / 406.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/0.3221, allocations: 56.36 kB / 406.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.3224, allocations: 307.3 kB / 406.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.3224, allocations: 25.03 kB / 406.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.3225, allocations: 28.38 kB / 406.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.3231, allocations: 363 kB / 407.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3231, allocations: 0 / 407.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.3231, allocations: 16 kB / 407.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3232, allocations: 8 kB / 407.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.3236, allocations: 266.4 kB / 407.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.3254, allocations: 1.418 MB / 408.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.3259, allocations: 227.3 kB / 409.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.3261, allocations: 117.6 kB / 409.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.3261, allocations: 3.938 kB / 409.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.3262, allocations: 34.56 kB / 409.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.484e-06/0.3262, allocations: 0 / 409.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001446/0.3276, allocations: 0.6997 MB / 410 MB, free: 22.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.3277, allocations: 55.41 kB / 410.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.3279, allocations: 304.6 kB / 410.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.328, allocations: 29.7 kB / 410.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.3281, allocations: 212.1 kB / 410.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.282e-05/0.3281, allocations: 78.89 kB / 410.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.3282, allocations: 53.7 kB / 410.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.3283, allocations: 338.8 kB / 411.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.3285, allocations: 79.95 kB / 411.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.3287, allocations: 116.2 kB / 411.2 MB, free: 21.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.329, allocations: 204.1 kB / 411.4 MB, free: 21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.329, allocations: 0 / 411.4 MB, free: 21 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006485/0.3297, allocations: 363.5 kB / 411.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3297, allocations: 4 kB / 411.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3297, allocations: 0 / 411.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003941/0.3301, allocations: 118.5 kB / 411.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3303, allocations: 31.92 kB / 412 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003438/0.3338, allocations: 4.446 MB / 416.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.3341, allocations: 27.77 kB / 416.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.3341, allocations: 15.94 kB / 416.4 MB, free: 15.57 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 0.0002255/0.3343, allocations: 157.8 kB / 416.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.696e-05/0.3344, allocations: 31.62 kB / 416.6 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.624e-05/0.3345, allocations: 39.17 kB / 416.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.3345, allocations: 4 kB / 416.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3345, allocations: 0 / 416.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3345, allocations: 3.984 kB / 416.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004399/0.3349, allocations: 373.2 kB / 417 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.335, allocations: 0 / 417 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.3351, allocations: 19.98 kB / 417.1 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003077/0.3354, allocations: 130.5 kB / 417.2 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.3354, allocations: 4 kB / 417.2 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.3382, allocations: 4.445 MB / 421.6 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3382, allocations: 3.938 kB / 421.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009131/0.3391, allocations: 1.092 MB / 422.7 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3392, allocations: 128.6 kB / 422.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.3393, allocations: 4 kB / 422.9 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.3395, allocations: 23.92 kB / 422.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/0.3396, allocations: 27.95 kB / 422.9 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.3396, allocations: 4 kB / 422.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002032/0.3398, allocations: 223 kB / 423.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3398, allocations: 4 kB / 423.1 MB, free: 8.328 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008351/0.3407, allocations: 115.7 kB / 423.2 MB, free: 8.215 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 0.0001978/0.3409, allocations: 103.2 kB / 423.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000943/0.3418, allocations: 0.5661 MB / 423.9 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3419, allocations: 0 / 423.9 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.3422, allocations: 487.5 kB / 424.4 MB, free: 6.988 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005427/0.3428, allocations: 53.2 kB / 424.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3441, allocations: 0.9407 MB / 425.4 MB, free: 5.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.3443, allocations: 0.799 MB / 426.2 MB, free: 5.133 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.3445, allocations: 26.91 kB / 426.2 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.857e-05/0.3445, allocations: 23.42 kB / 426.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of SimCode: time 5.92e-07/0.3445, allocations: 0 / 426.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of Templates: time 0.00892/0.3534, allocations: 5.115 MB / 431.3 MB, free: 12 kB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches