Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001225/0.001225, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00126/0.001259, allocations: 94.2 kB / 262.5 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.882e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09723, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.4043, allocations: 76.88 MB / 440 MB, free: 2.789 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.4045, allocations: 66.47 kB / 440 MB, free: 2.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01654/0.4211, allocations: 6.257 MB / 446.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4211, allocations: 0 / 446.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.4212, allocations: 8 kB / 446.3 MB, free: 13.49 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.001041/0.4222, allocations: 0.6062 MB / 446.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.4223, allocations: 8.031 kB / 446.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.73e-05/0.4224, allocations: 47.44 kB / 446.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.4228, allocations: 298.2 kB / 447.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.4229, allocations: 12 kB / 447.2 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.4229, allocations: 20 kB / 447.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004058/0.4233, allocations: 211.5 kB / 447.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.4239, allocations: 292.7 kB / 447.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.4239, allocations: 0 / 447.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.4239, allocations: 0 / 447.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.4239, allocations: 8 kB / 447.8 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.4259, allocations: 1.375 MB / 449.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.4262, allocations: 199.3 kB / 449.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.4264, allocations: 80.73 kB / 449.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.4264, allocations: 4 kB / 449.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.4265, allocations: 41.38 kB / 449.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.4265, allocations: 7.938 kB / 449.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004572/0.4269, allocations: 255.8 kB / 449.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.427, allocations: 51.41 kB / 449.8 MB, free: 10.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.4273, allocations: 238.8 kB / 450 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.4273, allocations: 25.7 kB / 450 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.4274, allocations: 212.5 kB / 450.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.027e-05/0.4275, allocations: 77.53 kB / 450.3 MB, free: 9.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/0.4275, allocations: 0 / 450.3 MB, free: 9.867 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4277, allocations: 340.7 kB / 450.6 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.4278, allocations: 58.12 kB / 450.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.4279, allocations: 103.3 kB / 450.8 MB, free: 9.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.4281, allocations: 66.67 kB / 450.9 MB, free: 9.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.4281, allocations: 0 / 450.9 MB, free: 9.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005661/0.4286, allocations: 308.5 kB / 451.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4287, allocations: 8 kB / 451.2 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.4287, allocations: 0 / 451.2 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003786/0.4291, allocations: 111.2 kB / 451.3 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.4293, allocations: 39.91 kB / 451.3 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/0.4328, allocations: 4.266 MB / 455.6 MB, free: 4.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.433, allocations: 23.77 kB / 455.6 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.4331, allocations: 11.81 kB / 455.6 MB, free: 4.602 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.0001322/0.4332, allocations: 108.9 kB / 455.7 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.4333, allocations: 31.62 kB / 455.8 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.4334, allocations: 32.66 kB / 455.8 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.4334, allocations: 8.062 kB / 455.8 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.4334, allocations: 0 / 455.8 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4334, allocations: 4.172 kB / 455.8 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004397/0.4338, allocations: 320.7 kB / 456.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4339, allocations: 0 / 456.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.434, allocations: 31.84 kB / 456.1 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.4343, allocations: 118.7 kB / 456.3 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.4343, allocations: 96 / 456.3 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003411/0.4378, allocations: 4.26 MB / 460.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/0.4378, allocations: 3.984 kB / 460.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005359/0.4384, allocations: 343.1 kB / 460.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.4385, allocations: 121.8 kB / 461 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.4385, allocations: 4 kB / 461 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.4388, allocations: 20.17 kB / 461 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.4389, allocations: 31.78 kB / 461 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.4389, allocations: 11.31 kB / 461 MB, free: 15.17 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001918/0.4391, allocations: 192.9 kB / 461.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4391, allocations: 0 / 461.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006936/0.4398, allocations: 103.7 kB / 461.3 MB, free: 14.91 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.000202/0.44, allocations: 103.2 kB / 461.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007096/0.4407, allocations: 0.5023 MB / 461.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4408, allocations: 0 / 461.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004391/0.4412, allocations: 445.2 kB / 462.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.4416, allocations: 33.64 kB / 462.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.4426, allocations: 383.7 kB / 462.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.4431, allocations: 0.807 MB / 463.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000114/0.4433, allocations: 18.08 kB / 463.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.971e-05/0.4433, allocations: 19.44 kB / 463.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of SimCode: time 9.21e-07/0.4433, allocations: 3.938 kB / 463.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of Templates: time 0.00821/0.4515, allocations: 4.139 MB / 467.8 MB, free: 8.531 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches