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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008865/0.0008866, allocations: 94.03 kB / 17.31 MB, free: 6.539 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.0009777/0.0009777, allocations: 176 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002274, allocations: 12.56 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0757/0.07595, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003294/0.07928, allocations: 3.133 MB / 355.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009993/0.08029, allocations: 0.7482 MB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.08044, allocations: 4 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.08058, allocations: 51.55 kB / 356.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.0808, allocations: 111.1 kB / 356.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002374/0.08104, allocations: 103.8 kB / 356.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.08149, allocations: 485.6 kB / 357.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.0817, allocations: 119.8 kB / 357.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.08194, allocations: 163.3 kB / 357.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.08217, allocations: 195 kB / 357.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.658e-05/0.08222, allocations: 24 kB / 357.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.167e-05/0.08228, allocations: 20 kB / 357.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.08235, allocations: 63.69 kB / 357.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.08254, allocations: 232.6 kB / 357.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.08292, allocations: 347 kB / 358.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.08293, allocations: 0 / 358.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08295, allocations: 4 kB / 358.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.08296, allocations: 0 / 358.2 MB, free: 13.89 MB / 302.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.0009524/0.08392, allocations: 0.6507 MB / 358.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.08395, allocations: 8.031 kB / 358.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.08404, allocations: 52.38 kB / 359 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.08437, allocations: 315.2 kB / 359.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.08445, allocations: 29.03 kB / 359.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.0845, allocations: 28.38 kB / 359.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006521/0.08516, allocations: 367.1 kB / 359.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.08518, allocations: 0 / 359.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.08522, allocations: 12 kB / 359.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.08524, allocations: 8 kB / 359.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006258/0.08587, allocations: 278.4 kB / 360 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.08775, allocations: 1.426 MB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004353/0.0882, allocations: 238.2 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.08844, allocations: 116.8 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.08847, allocations: 4 kB / 361.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.0885, allocations: 30.56 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.08851, allocations: 0 / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001526/0.09004, allocations: 0.7296 MB / 362.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.09009, allocations: 55.41 kB / 362.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.09039, allocations: 308.5 kB / 362.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.09042, allocations: 33.64 kB / 362.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.09055, allocations: 208.2 kB / 363.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/0.09062, allocations: 74.89 kB / 363.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.09068, allocations: 37.64 kB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.09079, allocations: 338.8 kB / 363.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.09101, allocations: 87.95 kB / 363.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.09125, allocations: 124.2 kB / 363.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.09168, allocations: 212.1 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.09169, allocations: 0 / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007512/0.09245, allocations: 375.5 kB / 364.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.09247, allocations: 8 kB / 364.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.09248, allocations: 0 / 364.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000373/0.09286, allocations: 118.5 kB / 364.4 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.09305, allocations: 35.98 kB / 364.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003415/0.09647, allocations: 4.45 MB / 368.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.09669, allocations: 35.83 kB / 369 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.09672, allocations: 12 kB / 369 MB, free: 2.355 MB / 302.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.0001447/0.09688, allocations: 149.7 kB / 369.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.968e-05/0.09694, allocations: 31.62 kB / 369.2 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-05/0.09702, allocations: 39.17 kB / 369.2 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.09703, allocations: 4 kB / 369.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.09703, allocations: 4 kB / 369.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.09704, allocations: 3.984 kB / 369.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.09744, allocations: 381.2 kB / 369.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09745, allocations: 0 / 369.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.09757, allocations: 19.98 kB / 369.6 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003242/0.09791, allocations: 126.5 kB / 369.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.09793, allocations: 8 kB / 369.7 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1279/0.2258, allocations: 4.436 MB / 374.2 MB, free: 21.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2259, allocations: 0.6875 kB / 374.2 MB, free: 21.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.2265, allocations: 412.3 kB / 374.6 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.2266, allocations: 130.8 kB / 374.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.2266, allocations: 9.766 kB / 374.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.2269, allocations: 23.62 kB / 374.7 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.2269, allocations: 27.22 kB / 374.8 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.227, allocations: 9.25 kB / 374.8 MB, free: 20.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.2272, allocations: 221.8 kB / 375 MB, free: 20.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2272, allocations: 0 / 375 MB, free: 20.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006761/0.2279, allocations: 113.4 kB / 375.1 MB, free: 20.75 MB / 302.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 8.938e-05/0.228, allocations: 114 kB / 375.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007505/0.2287, allocations: 0.5764 MB / 375.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2287, allocations: 1.031 kB / 375.8 MB, free: 20.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004198/0.2292, allocations: 496.2 kB / 376.3 MB, free: 20 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.2296, allocations: 51.97 kB / 376.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009959/0.2306, allocations: 0.8316 MB / 377.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.2308, allocations: 0.795 MB / 377.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.385e-05/0.2309, allocations: 21.62 kB / 378 MB, free: 18.82 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2309, allocations: 0 / 378 MB, free: 18.82 MB / 302.1 MB Notification: Performance of Templates: time 0.008959/0.2399, allocations: 8.234 MB / 386.2 MB, free: 16.55 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches