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.001316/0.001316, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001167/0.001167, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 43.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2337, allocations: 49.45 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004202/0.2379, allocations: 3.483 MB / 404.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.239, allocations: 0.7478 MB / 405.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.2392, allocations: 7.938 kB / 405.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.2393, allocations: 59.36 kB / 405.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.2396, allocations: 138.8 kB / 405.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.2398, allocations: 111.8 kB / 406 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004573/0.2403, allocations: 0.4977 MB / 406.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.2406, allocations: 136.5 kB / 406.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.2408, allocations: 191.3 kB / 406.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.241, allocations: 211.1 kB / 407 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.2411, allocations: 40 kB / 407 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.2412, allocations: 40 kB / 407.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.116e-05/0.2413, allocations: 95.56 kB / 407.2 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.2414, allocations: 214.9 kB / 407.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004231/0.2419, allocations: 494.1 kB / 407.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2419, allocations: 0 / 407.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2419, allocations: 0 / 407.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.2419, allocations: 0 / 407.8 MB, free: 2.41 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.001054/0.243, allocations: 0.7208 MB / 408.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.243, allocations: 15.83 kB / 408.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.2431, allocations: 56.31 kB / 408.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.2435, allocations: 315.2 kB / 408.9 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.2435, allocations: 24.97 kB / 409 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.414e-05/0.2436, allocations: 32.38 kB / 409 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.2442, allocations: 359.1 kB / 409.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2442, allocations: 0 / 409.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.2442, allocations: 16 kB / 409.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.2442, allocations: 8 kB / 409.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005379/0.2448, allocations: 266.4 kB / 409.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.2466, allocations: 1.407 MB / 411 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.247, allocations: 218.4 kB / 411.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.2473, allocations: 112.8 kB / 411.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.2473, allocations: 4 kB / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2473, allocations: 38.56 kB / 411.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.2473, allocations: 0 / 411.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001486/0.2488, allocations: 0.706 MB / 412.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.2489, allocations: 55.41 kB / 412.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.2492, allocations: 300.6 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.2492, allocations: 33.64 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.2493, allocations: 208.2 kB / 412.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.2494, allocations: 82.91 kB / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.2495, allocations: 49.61 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2496, allocations: 334.8 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.2498, allocations: 79.95 kB / 413.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.25, allocations: 128.2 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.2504, allocations: 204.1 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2504, allocations: 3.938 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006833/0.2511, allocations: 359.6 kB / 413.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.2511, allocations: 4 kB / 413.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2511, allocations: 0 / 413.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/0.2515, allocations: 122.4 kB / 414 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.2517, allocations: 32.02 kB / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.2555, allocations: 4.963 MB / 419 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.2557, allocations: 27.77 kB / 419.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.2557, allocations: 12.28 kB / 419.1 MB, free: 6.359 MB / 334.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.0001735/0.2559, allocations: 145.8 kB / 419.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/0.256, allocations: 35.56 kB / 419.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.668e-05/0.256, allocations: 47.17 kB / 419.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2561, allocations: 4 kB / 419.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2561, allocations: 3.984 kB / 419.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2561, allocations: 0 / 419.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.2565, allocations: 373.3 kB / 419.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2565, allocations: 0 / 419.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.2566, allocations: 20.09 kB / 419.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003255/0.2569, allocations: 126.4 kB / 419.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.2569, allocations: 0 / 419.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.2605, allocations: 4.963 MB / 424.8 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2605, allocations: 0 / 424.8 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/0.2611, allocations: 407.1 kB / 425.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.2612, allocations: 128.7 kB / 425.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.2612, allocations: 8 kB / 425.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.2615, allocations: 19.98 kB / 425.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.2616, allocations: 19.97 kB / 425.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.2616, allocations: 12.06 kB / 425.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001949/0.2618, allocations: 219.1 kB / 425.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2618, allocations: 4 kB / 425.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006214/0.2624, allocations: 115.7 kB / 425.7 MB, free: 15.21 MB / 350.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.0001227/0.2625, allocations: 119.1 kB / 425.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000812/0.2634, allocations: 0.5651 MB / 426.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2634, allocations: 0 / 426.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.2639, allocations: 483.7 kB / 426.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.2643, allocations: 61.67 kB / 426.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.2654, allocations: 0.6502 MB / 427.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.2657, allocations: 0.7952 MB / 428.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.2658, allocations: 27.36 kB / 428.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2658, allocations: 0 / 428.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Templates: time 0.00907/0.2749, allocations: 8.304 MB / 436.7 MB, free: 4.094 MB / 350.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