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.001505/0.001505, allocations: 103 kB / 17.74 MB, free: 5.367 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.001816/0.001816, allocations: 188.5 kB / 18.66 MB, free: 4.449 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.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 43.94 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2635, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004844/0.2684, allocations: 3.488 MB / 404.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2699, allocations: 0.7439 MB / 405.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.2702, allocations: 8 kB / 405.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002402/0.2705, allocations: 67.28 kB / 405.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.2708, allocations: 134.8 kB / 405.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.2712, allocations: 111.8 kB / 406 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006051/0.2718, allocations: 0.4938 MB / 406.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.272, allocations: 139 kB / 406.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.2723, allocations: 195.3 kB / 406.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.2727, allocations: 211 kB / 407 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.991e-05/0.2727, allocations: 40 kB / 407 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.157e-05/0.2728, allocations: 40 kB / 407.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.03e-05/0.2729, allocations: 83.69 kB / 407.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.2731, allocations: 230.8 kB / 407.4 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.2736, allocations: 479.6 kB / 407.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2736, allocations: 4 kB / 407.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2736, allocations: 0 / 407.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.2736, allocations: 0 / 407.8 MB, free: 2.418 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.001116/0.2748, allocations: 0.7208 MB / 408.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2748, allocations: 15.89 kB / 408.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.2749, allocations: 52.38 kB / 408.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.2754, allocations: 323.2 kB / 408.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.2754, allocations: 25.03 kB / 409 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.2755, allocations: 28.38 kB / 409 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.2761, allocations: 355.1 kB / 409.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2761, allocations: 7.938 kB / 409.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.2761, allocations: 12 kB / 409.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2762, allocations: 8 kB / 409.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.2767, allocations: 270.4 kB / 409.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.2786, allocations: 1.399 MB / 411 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.2791, allocations: 226.4 kB / 411.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.2793, allocations: 108.8 kB / 411.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.2793, allocations: 11.98 kB / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.2794, allocations: 30.56 kB / 411.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2794, allocations: 0 / 411.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001438/0.2808, allocations: 0.7098 MB / 412.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.2809, allocations: 51.41 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.2812, allocations: 308.6 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.2812, allocations: 29.7 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2813, allocations: 208.2 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.2814, allocations: 66.92 kB / 412.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.148e-05/0.2815, allocations: 49.61 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.2816, allocations: 346.8 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.2818, allocations: 79.97 kB / 413.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.282, allocations: 128.2 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.2824, allocations: 208 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2824, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006962/0.2831, allocations: 355.5 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.2832, allocations: 8 kB / 413.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2832, allocations: 0 / 413.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003992/0.2836, allocations: 122.5 kB / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.2838, allocations: 27.92 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.2875, allocations: 4.975 MB / 419 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.2877, allocations: 23.75 kB / 419.1 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.2878, allocations: 15.92 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.0001802/0.288, allocations: 145.8 kB / 419.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.288, allocations: 35.56 kB / 419.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.2881, allocations: 35.17 kB / 419.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2881, allocations: 0 / 419.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.2881, allocations: 4.062 kB / 419.3 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2881, allocations: 0 / 419.3 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004552/0.2886, allocations: 377.3 kB / 419.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.2886, allocations: 288 / 419.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.2887, allocations: 27.92 kB / 419.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003159/0.289, allocations: 110.5 kB / 419.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.2891, allocations: 7.938 kB / 419.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003654/0.2927, allocations: 4.97 MB / 424.8 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2928, allocations: 0 / 424.8 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006265/0.2934, allocations: 399.1 kB / 425.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.2935, allocations: 128.6 kB / 425.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.2936, allocations: 0 / 425.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.2938, allocations: 24.05 kB / 425.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.908e-05/0.2939, allocations: 35.89 kB / 425.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2939, allocations: 7.938 kB / 425.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002098/0.2941, allocations: 219.1 kB / 425.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2941, allocations: 0 / 425.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006593/0.2948, allocations: 119.7 kB / 425.7 MB, free: 15.22 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.0001344/0.295, allocations: 107.2 kB / 425.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.2958, allocations: 0.569 MB / 426.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2959, allocations: 4.125 kB / 426.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.2964, allocations: 479.7 kB / 426.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.2968, allocations: 61.83 kB / 426.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.298, allocations: 0.6568 MB / 427.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.2983, allocations: 0.7991 MB / 428.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.597e-05/0.2984, allocations: 23.44 kB / 428.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2984, allocations: 0 / 428.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01016/0.3086, allocations: 8.29 MB / 436.7 MB, free: 4.113 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