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.001597/0.001602, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001102/0.001102, allocations: 98.61 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.338e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3988/0.5052, allocations: 77.31 MB / 446.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.5055, allocations: 69.53 kB / 446.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02705/0.5325, allocations: 6.329 MB / 452.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5326, allocations: 0 / 452.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.946e-05/0.5326, allocations: 8 kB / 452.8 MB, free: 10.43 MB / 330.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.001378/0.534, allocations: 0.6117 MB / 453.4 MB, free: 9.789 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.5341, allocations: 12.03 kB / 453.4 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.5342, allocations: 47.44 kB / 453.5 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.5348, allocations: 304.5 kB / 453.8 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.5348, allocations: 24.22 kB / 453.8 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.336e-05/0.5349, allocations: 31.62 kB / 453.8 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008229/0.5358, allocations: 331.5 kB / 454.1 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.5358, allocations: 4 kB / 454.1 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.243e-05/0.5358, allocations: 15.67 kB / 454.2 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.5359, allocations: 8 kB / 454.2 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.5365, allocations: 235.3 kB / 454.4 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.5396, allocations: 1.431 MB / 455.8 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.5402, allocations: 203.5 kB / 456 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.5405, allocations: 95.47 kB / 456.1 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.5405, allocations: 4 kB / 456.1 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.5406, allocations: 38.5 kB / 456.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.456e-06/0.5406, allocations: 0 / 456.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007851/0.5414, allocations: 272.6 kB / 456.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.5414, allocations: 51.41 kB / 456.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.5418, allocations: 272.6 kB / 456.7 MB, free: 6.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.5419, allocations: 25.7 kB / 456.8 MB, free: 6.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.5421, allocations: 257.2 kB / 457 MB, free: 6.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.674e-05/0.5422, allocations: 78.41 kB / 457.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/0.5422, allocations: 3.75 kB / 457.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.5424, allocations: 326.6 kB / 457.4 MB, free: 6.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.5426, allocations: 63.44 kB / 457.5 MB, free: 6.246 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.5428, allocations: 110.7 kB / 457.6 MB, free: 6.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.543, allocations: 66.73 kB / 457.7 MB, free: 6.109 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5431, allocations: 0 / 457.7 MB, free: 6.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009785/0.5441, allocations: 318.2 kB / 458 MB, free: 5.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.5441, allocations: 4 kB / 458 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.5441, allocations: 0 / 458 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/0.5447, allocations: 121.6 kB / 458.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003234/0.5451, allocations: 36.03 kB / 458.1 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005088/0.5502, allocations: 4.442 MB / 462.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.5507, allocations: 39.88 kB / 462.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.5507, allocations: 12 kB / 462.6 MB, free: 0.9375 MB / 330.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 () * 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.0001476/0.5509, allocations: 120.9 kB / 462.7 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/0.551, allocations: 31.62 kB / 462.8 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.5511, allocations: 38.95 kB / 462.8 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5511, allocations: 4 kB / 462.8 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5511, allocations: 0 / 462.8 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.5512, allocations: 7.984 kB / 462.8 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000639/0.5518, allocations: 373.3 kB / 463.2 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.5518, allocations: 0 / 463.2 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.5521, allocations: 23.97 kB / 463.2 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005318/0.5526, allocations: 114.6 kB / 463.3 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.5526, allocations: 4 kB / 463.3 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005031/0.5577, allocations: 4.434 MB / 467.8 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5577, allocations: 0 / 467.8 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008364/0.5586, allocations: 385.6 kB / 468.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.5588, allocations: 116.7 kB / 468.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.056e-05/0.5589, allocations: 8 kB / 468.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006301/0.5595, allocations: 27.97 kB / 468.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.5597, allocations: 23.97 kB / 468.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.5597, allocations: 8 kB / 468.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003479/0.5601, allocations: 214.2 kB / 468.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5601, allocations: 0 / 468.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008973/0.561, allocations: 119.7 kB / 468.6 MB, free: 10.4 MB / 346.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 () * 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.0001761/0.5612, allocations: 99.25 kB / 468.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.5623, allocations: 0.5386 MB / 469.3 MB, free: 9.719 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.5623, allocations: 0 / 469.3 MB, free: 9.719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006943/0.563, allocations: 455.7 kB / 469.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005107/0.5636, allocations: 61.7 kB / 469.8 MB, free: 9.176 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.5649, allocations: 438.4 kB / 470.2 MB, free: 8.719 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/0.5654, allocations: 0.8106 MB / 471 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.5655, allocations: 19.44 kB / 471 MB, free: 7.859 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5655, allocations: 0 / 471 MB, free: 7.859 MB / 346.7 MB Notification: Performance of Templates: time 0.01542/0.581, allocations: 7.97 MB / 479 MB, free: 15.88 MB / 362.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