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.001478/0.001478, allocations: 93.92 kB / 16.65 MB, free: 6.586 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.001693/0.001694, allocations: 187.3 kB / 17.57 MB, free: 6.199 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.561/1.561, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003001, allocations: 15.92 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1251, allocations: 50.42 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00415/0.1293, allocations: 3.125 MB / 355 MB, free: 332 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1307, allocations: 0.7482 MB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.1309, allocations: 4 kB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.1311, allocations: 55.48 kB / 355.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.1314, allocations: 111.1 kB / 355.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.1317, allocations: 99.86 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005662/0.1323, allocations: 485.7 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.1326, allocations: 119.8 kB / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.1329, allocations: 167.3 kB / 356.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.1332, allocations: 191 kB / 356.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.218e-05/0.1332, allocations: 24 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.051e-05/0.1333, allocations: 20 kB / 357 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.989e-05/0.1334, allocations: 63.7 kB / 357 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.1336, allocations: 228.5 kB / 357.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.134, allocations: 458.2 kB / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.134, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.134, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.134, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.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.001051/0.1351, allocations: 0.6507 MB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.1351, allocations: 12.03 kB / 358.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.359e-05/0.1352, allocations: 52.36 kB / 358.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.1356, allocations: 307.2 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1357, allocations: 29.03 kB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/0.1357, allocations: 28.38 kB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.1364, allocations: 363.1 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1364, allocations: 0 / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.1364, allocations: 20 kB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1365, allocations: 11.94 kB / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005824/0.1371, allocations: 278.5 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1391, allocations: 1.43 MB / 360.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.1395, allocations: 226.3 kB / 361.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.1398, allocations: 120.8 kB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1398, allocations: 3.984 kB / 361.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1398, allocations: 38.56 kB / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.986e-06/0.1398, allocations: 0 / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001641/0.1415, allocations: 0.7256 MB / 362 MB, free: 9.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.1416, allocations: 55.41 kB / 362 MB, free: 8.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.1419, allocations: 308.5 kB / 362.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.1419, allocations: 29.7 kB / 362.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.1421, allocations: 208.2 kB / 362.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.85e-05/0.1422, allocations: 74.91 kB / 362.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.801e-05/0.1422, allocations: 25.66 kB / 362.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1424, allocations: 346.8 kB / 363 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.1426, allocations: 83.97 kB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.1428, allocations: 132.2 kB / 363.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004023/0.1432, allocations: 212.1 kB / 363.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1432, allocations: 0 / 363.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007283/0.1439, allocations: 375.5 kB / 363.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.144, allocations: 6.344 kB / 363.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.144, allocations: 0 / 363.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004273/0.1444, allocations: 122.5 kB / 363.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.1446, allocations: 35.97 kB / 363.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/0.1482, allocations: 4.454 MB / 368.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.1485, allocations: 31.81 kB / 368.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1486, allocations: 4 kB / 368.4 MB, free: 2.039 MB / 302.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.0002937/0.1489, allocations: 153.7 kB / 368.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.1489, allocations: 31.62 kB / 368.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.149, allocations: 39.17 kB / 368.6 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.149, allocations: 4 kB / 368.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.149, allocations: 0 / 368.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1491, allocations: 0 / 368.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.1496, allocations: 389.2 kB / 369 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1496, allocations: 0 / 369 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.1497, allocations: 23.98 kB / 369 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003213/0.15, allocations: 118.6 kB / 369.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.1501, allocations: 4 kB / 369.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2631/0.4131, allocations: 4.442 MB / 373.6 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4132, allocations: 1.031 kB / 373.6 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006843/0.4139, allocations: 418.1 kB / 374 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.414, allocations: 128.4 kB / 374.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.414, allocations: 5.406 kB / 374.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.4143, allocations: 30.8 kB / 374.2 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.4144, allocations: 26.75 kB / 374.2 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.4144, allocations: 9.328 kB / 374.2 MB, free: 20.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.4147, allocations: 215.9 kB / 374.4 MB, free: 20.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4147, allocations: 0 / 374.4 MB, free: 20.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000738/0.4154, allocations: 111.7 kB / 374.5 MB, free: 20.27 MB / 302.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.0001473/0.4156, allocations: 110.5 kB / 374.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009084/0.4165, allocations: 0.5845 MB / 375.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4165, allocations: 0.8125 kB / 375.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000572/0.4171, allocations: 490.1 kB / 375.7 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005165/0.4176, allocations: 57.52 kB / 375.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.4189, allocations: 0.7885 MB / 376.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.4192, allocations: 0.8002 MB / 377.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.4193, allocations: 21.97 kB / 377.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-05/0.4194, allocations: 22.08 kB / 377.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4194, allocations: 0 / 377.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01179/0.4312, allocations: 4.869 MB / 382.3 MB, free: 18.05 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/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