Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 111.7 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 188.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 47.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1193, allocations: 46.61 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004659/0.124, allocations: 3.446 MB / 378.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1257, allocations: 0.8029 MB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003709/0.1261, allocations: 4 kB / 379.4 MB, free: 316 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.1264, allocations: 71.28 kB / 379.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004041/0.1268, allocations: 126.8 kB / 379.6 MB, free: 116 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.1272, allocations: 111.8 kB / 379.7 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2169/0.3441, allocations: 0.4946 MB / 380.2 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.3446, allocations: 142.8 kB / 380.3 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006464/0.3453, allocations: 187.4 kB / 380.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005927/0.3459, allocations: 206.4 kB / 380.7 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.346, allocations: 40.31 kB / 380.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.219e-05/0.3461, allocations: 38.88 kB / 380.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.771e-05/0.3462, allocations: 93.05 kB / 380.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002526/0.3465, allocations: 221.2 kB / 381.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006816/0.3472, allocations: 498.5 kB / 381.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3472, allocations: 0.5 kB / 381.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3472, allocations: 0 / 381.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3472, allocations: 4.609 kB / 381.6 MB, free: 9.555 MB / 318.1 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.001157/0.3484, allocations: 0.7136 MB / 382.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3484, allocations: 14.05 kB / 382.3 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.3485, allocations: 48.28 kB / 382.4 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.349, allocations: 313.8 kB / 382.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.614e-05/0.3491, allocations: 28.16 kB / 382.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.223e-05/0.3491, allocations: 30.12 kB / 382.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006686/0.3498, allocations: 357.6 kB / 383.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3498, allocations: 4.562 kB / 383.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.3499, allocations: 14.69 kB / 383.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.3499, allocations: 8.406 kB / 383.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005323/0.3504, allocations: 270.4 kB / 383.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.3523, allocations: 1.415 MB / 384.8 MB, free: 7.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.3528, allocations: 216.8 kB / 385 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.353, allocations: 113.6 kB / 385.1 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.353, allocations: 2.75 kB / 385.1 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.353, allocations: 32.12 kB / 385.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.353, allocations: 1.688 kB / 385.1 MB, free: 7.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001423/0.3545, allocations: 0.7041 MB / 385.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.3545, allocations: 54.33 kB / 385.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.3548, allocations: 308.3 kB / 386.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3548, allocations: 31.27 kB / 386.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3549, allocations: 211.6 kB / 386.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.203e-05/0.355, allocations: 70.75 kB / 386.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.983e-05/0.3551, allocations: 54.02 kB / 386.6 MB, free: 6.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.3552, allocations: 339.3 kB / 386.9 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.3554, allocations: 80.86 kB / 387 MB, free: 6.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.3556, allocations: 120.1 kB / 387.1 MB, free: 6.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.3559, allocations: 212.2 kB / 387.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3559, allocations: 0 / 387.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006798/0.3566, allocations: 352 kB / 387.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3567, allocations: 6.094 kB / 387.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3567, allocations: 2.469 kB / 387.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/0.3571, allocations: 116.7 kB / 387.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.3572, allocations: 33 kB / 387.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.3601, allocations: 4.97 MB / 392.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.3603, allocations: 26.52 kB / 392.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.3603, allocations: 8.016 kB / 392.8 MB, free: 1.266 MB / 318.1 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.0001469/0.3605, allocations: 145.1 kB / 392.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.3605, allocations: 36.75 kB / 393 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.609e-05/0.3606, allocations: 39.16 kB / 393 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3606, allocations: 8.203 kB / 393 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3606, allocations: 3.938 kB / 393 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3606, allocations: 2.203 kB / 393 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/0.361, allocations: 376.6 kB / 393.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3611, allocations: 3.938 kB / 393.4 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.3612, allocations: 20.06 kB / 393.4 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002991/0.3615, allocations: 116.9 kB / 393.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.3615, allocations: 10.86 kB / 393.5 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003389/0.3649, allocations: 4.958 MB / 398.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3649, allocations: 5 kB / 398.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006154/0.3656, allocations: 400.4 kB / 398.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.3657, allocations: 133.2 kB / 399 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.3657, allocations: 1.438 kB / 399 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.366, allocations: 25.75 kB / 399.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.3661, allocations: 26.31 kB / 399.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.3661, allocations: 10.34 kB / 399.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002387/0.3663, allocations: 221.2 kB / 399.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3664, allocations: 0 / 399.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006824/0.367, allocations: 114.8 kB / 399.4 MB, free: 11.38 MB / 334.1 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.0001283/0.3672, allocations: 105.9 kB / 399.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008629/0.368, allocations: 0.583 MB / 400.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3681, allocations: 0 / 400.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004929/0.3686, allocations: 474.2 kB / 400.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.369, allocations: 56.55 kB / 400.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3704, allocations: 0.634 MB / 401.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.3709, allocations: 0.7935 MB / 402 MB, free: 9.363 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.371, allocations: 22.38 kB / 402.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.265e-05/0.3711, allocations: 21.5 kB / 402.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3711, allocations: 0 / 402.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of Templates: time 0.01179/0.3829, allocations: 5.446 MB / 407.5 MB, free: 8.207 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches