Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002377/0.002377, allocations: 181.2 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.468/3.468, allocations: 205.4 MB / 223.6 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.004204/0.004204, allocations: 92.16 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006068/0.000607, allocations: 8 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5228, allocations: 47.57 MB / 375.7 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.7082, allocations: 77.44 MB / 453.2 MB, free: 3.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004261/0.7087, allocations: 71.95 kB / 453.2 MB, free: 3.109 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03079/0.7396, allocations: 6.321 MB / 459.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.231e-06/0.7396, allocations: 4 kB / 459.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.365e-05/0.7397, allocations: 8 kB / 459.6 MB, free: 12.72 MB / 346.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.001954/0.7417, allocations: 0.6507 MB / 460.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.069e-05/0.7418, allocations: 8.031 kB / 460.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.742, allocations: 48.38 kB / 460.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00075/0.7427, allocations: 315.7 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.497e-05/0.7428, allocations: 29.02 kB / 460.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.097e-05/0.7429, allocations: 36.31 kB / 460.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.7441, allocations: 359.3 kB / 461 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.7442, allocations: 192 / 461 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.7442, allocations: 19.94 kB / 461 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.7443, allocations: 8 kB / 461 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.7456, allocations: 282.4 kB / 461.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004172/0.7498, allocations: 1.435 MB / 462.7 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000881/0.7507, allocations: 220.9 kB / 462.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.7512, allocations: 120.8 kB / 463.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.7513, allocations: 4 kB / 463.1 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/0.7514, allocations: 34.56 kB / 463.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 4.699e-06/0.7514, allocations: 0 / 463.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.003138/0.7546, allocations: 0.7179 MB / 463.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.7547, allocations: 59.41 kB / 463.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.7554, allocations: 300.5 kB / 464.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.7555, allocations: 33.7 kB / 464.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.7557, allocations: 204.1 kB / 464.4 MB, free: 7.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.7559, allocations: 82.83 kB / 464.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.7559, allocations: 4 kB / 464.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.7562, allocations: 342.8 kB / 464.8 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004093/0.7566, allocations: 92.45 kB / 464.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.7572, allocations: 120.2 kB / 465 MB, free: 6.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009367/0.7581, allocations: 216.1 kB / 465.2 MB, free: 6.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.7582, allocations: 0 / 465.2 MB, free: 6.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001709/0.7599, allocations: 375.7 kB / 465.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.76, allocations: 4 kB / 465.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.76, allocations: 4.094 kB / 465.6 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008804/0.7609, allocations: 118.4 kB / 465.7 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.7613, allocations: 35.97 kB / 465.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007182/0.7685, allocations: 4.454 MB / 470.2 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.7692, allocations: 31.72 kB / 470.3 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/0.7693, allocations: 16.05 kB / 470.3 MB, free: 1.219 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004046/0.7697, allocations: 149.7 kB / 470.4 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.7698, allocations: 35.56 kB / 470.5 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.77, allocations: 39.17 kB / 470.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.77, allocations: 0 / 470.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.77, allocations: 4 kB / 470.5 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.77, allocations: 0 / 470.5 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007659/0.7708, allocations: 369.3 kB / 470.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.7708, allocations: 4 kB / 470.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.771, allocations: 23.98 kB / 470.9 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006419/0.7717, allocations: 110.5 kB / 471 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.359e-05/0.7718, allocations: 8 kB / 471 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006501/0.7783, allocations: 4.46 MB / 475.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.7784, allocations: 0 / 475.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.7798, allocations: 418.1 kB / 475.9 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.7801, allocations: 128.6 kB / 476 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.7802, allocations: 4 kB / 476 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.7806, allocations: 31.98 kB / 476 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.7808, allocations: 27.81 kB / 476.1 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.7808, allocations: 4 kB / 476.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004783/0.7813, allocations: 215.1 kB / 476.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.7814, allocations: 0 / 476.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001283/0.7827, allocations: 111.8 kB / 476.4 MB, free: 10.6 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002829/0.783, allocations: 110 kB / 476.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.7847, allocations: 0.5817 MB / 477.1 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.7847, allocations: 0 / 477.1 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.7858, allocations: 480 kB / 477.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008763/0.7867, allocations: 57.5 kB / 477.6 MB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.7902, allocations: 0.7982 MB / 478.4 MB, free: 8.469 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006253/0.7908, allocations: 0.7951 MB / 479.2 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.791, allocations: 19.44 kB / 479.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.791, allocations: 0 / 479.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of Templates: time 0.03157/0.8226, allocations: 8.243 MB / 487.4 MB, free: 15.39 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches