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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 180.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001118, allocations: 96.02 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003013, allocations: 11.94 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2377, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09045/0.3282, allocations: 78.75 MB / 480.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.3285, allocations: 71.95 kB / 480.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01625/0.3447, allocations: 6.546 MB / 486.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3447, allocations: 0 / 486.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.3448, allocations: 11.94 kB / 486.9 MB, free: 11.08 MB / 362.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.0008819/0.3457, allocations: 0.6622 MB / 487.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3457, allocations: 8.031 kB / 487.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.3458, allocations: 47.44 kB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.3461, allocations: 294.6 kB / 487.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.3461, allocations: 24.66 kB / 487.9 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.3462, allocations: 32 kB / 487.9 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005678/0.3468, allocations: 358.7 kB / 488.3 MB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3468, allocations: 0 / 488.3 MB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.3468, allocations: 16 kB / 488.3 MB, free: 9.555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.3468, allocations: 8 kB / 488.3 MB, free: 9.547 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005193/0.3474, allocations: 282.4 kB / 488.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.3494, allocations: 1.438 MB / 490 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.3498, allocations: 227 kB / 490.2 MB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.3499, allocations: 4 kB / 490.2 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.3499, allocations: 42.55 kB / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.3499, allocations: 0 / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001513/0.3514, allocations: 0.7116 MB / 491 MB, free: 6.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.3515, allocations: 55.41 kB / 491 MB, free: 6.602 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.3517, allocations: 263.7 kB / 491.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3518, allocations: 37.64 kB / 491.3 MB, free: 6.301 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.3519, allocations: 216.1 kB / 491.6 MB, free: 6.086 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.355e-05/0.352, allocations: 74.89 kB / 491.6 MB, free: 6.012 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.294e-05/0.352, allocations: 4 kB / 491.6 MB, free: 6.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3522, allocations: 342.8 kB / 492 MB, free: 5.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.3524, allocations: 87.95 kB / 492 MB, free: 5.578 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.3526, allocations: 120.2 kB / 492.2 MB, free: 5.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.3528, allocations: 91.91 kB / 492.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3528, allocations: 8 kB / 492.3 MB, free: 5.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007017/0.3535, allocations: 375.7 kB / 492.6 MB, free: 4.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3535, allocations: 7.984 kB / 492.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3535, allocations: 0 / 492.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003857/0.3539, allocations: 114.5 kB / 492.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.3541, allocations: 31.92 kB / 492.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003417/0.3575, allocations: 4.481 MB / 497.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.3578, allocations: 27.78 kB / 497.3 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.3579, allocations: 8.047 kB / 497.3 MB, free: 15.88 MB / 378.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.0002198/0.3581, allocations: 157.7 kB / 497.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.537e-05/0.3582, allocations: 31.62 kB / 497.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.3582, allocations: 35.17 kB / 497.5 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3582, allocations: 4 kB / 497.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3582, allocations: 0 / 497.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3583, allocations: 0 / 497.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.3587, allocations: 377.2 kB / 497.9 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3587, allocations: 3.953 kB / 497.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3588, allocations: 27.98 kB / 497.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003318/0.3592, allocations: 110.9 kB / 498 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.3592, allocations: 4 kB / 498 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003296/0.3625, allocations: 4.489 MB / 0.4907 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3625, allocations: 0 / 0.4907 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006334/0.3632, allocations: 405.6 kB / 0.4911 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.3633, allocations: 136.6 kB / 0.4913 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.3634, allocations: 8 kB / 0.4913 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3636, allocations: 27.98 kB / 0.4913 GB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.3637, allocations: 27.81 kB / 0.4913 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3637, allocations: 4 kB / 0.4913 GB, free: 9.547 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.3639, allocations: 219.1 kB / 0.4915 GB, free: 9.332 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3639, allocations: 0 / 0.4915 GB, free: 9.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006281/0.3646, allocations: 111.8 kB / 0.4916 GB, free: 9.223 MB / 378.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.0001373/0.3647, allocations: 115.2 kB / 0.4918 GB, free: 9.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008374/0.3655, allocations: 0.578 MB / 0.4923 GB, free: 8.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3656, allocations: 0.6562 kB / 0.4923 GB, free: 8.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004659/0.366, allocations: 483.9 kB / 0.4928 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.3664, allocations: 59.86 kB / 0.4928 GB, free: 7.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3675, allocations: 0.7633 MB / 0.4936 GB, free: 7.129 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3678, allocations: 0.8067 MB / 0.4944 GB, free: 6.297 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.368, allocations: 22.97 kB / 0.4944 GB, free: 6.273 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.368, allocations: 19.44 kB / 0.4944 GB, free: 6.254 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.368, allocations: 7.938 kB / 0.4944 GB, free: 6.246 MB / 378.7 MB Notification: Performance of Templates: time 0.008067/0.3761, allocations: 4.719 MB / 0.499 GB, free: 1.582 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches