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.001341/0.001342, allocations: 115.5 kB / 16.63 MB, free: 6.812 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.001239/0.00124, allocations: 186 kB / 17.55 MB, free: 5.934 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.485/1.485, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 50.98 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1238, allocations: 49.45 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004549/0.1284, allocations: 3.507 MB / 353.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1297, allocations: 0.756 MB / 353.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.1299, allocations: 11.94 kB / 353.8 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002143/0.1301, allocations: 47.61 kB / 353.9 MB, free: 428 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.1303, allocations: 115 kB / 354 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.1306, allocations: 91.91 kB / 354.1 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.1312, allocations: 0.4977 MB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.1315, allocations: 143.1 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.1317, allocations: 191.3 kB / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.132, allocations: 207 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.132, allocations: 44 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.1321, allocations: 40 kB / 355.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-05/0.1322, allocations: 87.69 kB / 355.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.1324, allocations: 222.8 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.1329, allocations: 490.3 kB / 356 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1329, allocations: 4 kB / 356 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1329, allocations: 0 / 356 MB, free: 14.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.547e-06/0.1329, allocations: 0 / 356 MB, free: 14.31 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.001086/0.134, allocations: 0.7051 MB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.134, allocations: 15.89 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.264e-05/0.1341, allocations: 56.36 kB / 356.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.1345, allocations: 307.3 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1345, allocations: 25.03 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.1346, allocations: 32.38 kB / 357.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.1352, allocations: 363 kB / 357.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1352, allocations: 0 / 357.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.1352, allocations: 19.94 kB / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1352, allocations: 8 kB / 357.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005205/0.1358, allocations: 274.4 kB / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.1376, allocations: 1.418 MB / 359.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.1381, allocations: 222.3 kB / 359.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.1383, allocations: 108.8 kB / 359.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1383, allocations: 4 kB / 359.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1383, allocations: 42.56 kB / 359.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.1384, allocations: 0 / 359.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001468/0.1398, allocations: 0.696 MB / 360.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.1399, allocations: 55.41 kB / 360.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.1402, allocations: 304.6 kB / 360.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.1402, allocations: 33.7 kB / 360.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1403, allocations: 208.1 kB / 360.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.66e-05/0.1404, allocations: 82.89 kB / 360.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-05/0.1405, allocations: 45.7 kB / 361 MB, free: 8.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1406, allocations: 342.8 kB / 361.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.1408, allocations: 75.95 kB / 361.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.141, allocations: 124.2 kB / 361.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.1413, allocations: 200.1 kB / 361.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1414, allocations: 0 / 361.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006944/0.1421, allocations: 367.5 kB / 362 MB, free: 7.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1421, allocations: 4 kB / 362.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1421, allocations: 0 / 362.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.1425, allocations: 110.5 kB / 362.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1427, allocations: 35.92 kB / 362.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.1462, allocations: 4.967 MB / 367.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1464, allocations: 31.86 kB / 367.2 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1464, allocations: 8 kB / 367.2 MB, free: 2.273 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.0001423/0.1465, allocations: 149.9 kB / 367.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.1466, allocations: 35.56 kB / 367.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.1467, allocations: 43.11 kB / 367.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.1467, allocations: 4.281 kB / 367.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1467, allocations: 0 / 367.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1467, allocations: 3.984 kB / 367.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.1471, allocations: 381.1 kB / 367.8 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1471, allocations: 3.938 kB / 367.8 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.1472, allocations: 23.97 kB / 367.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003078/0.1475, allocations: 114.5 kB / 367.9 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1475, allocations: 4 kB / 367.9 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2067/0.3542, allocations: 4.957 MB / 372.9 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3543, allocations: 1.5 kB / 372.9 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.3549, allocations: 401.1 kB / 373.3 MB, free: 21.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.3551, allocations: 130.1 kB / 373.4 MB, free: 21.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/0.3551, allocations: 9.453 kB / 373.4 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.3554, allocations: 22.5 kB / 373.5 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-05/0.3555, allocations: 24.53 kB / 373.5 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.3555, allocations: 9.703 kB / 373.5 MB, free: 21.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.3558, allocations: 217.9 kB / 373.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3558, allocations: 0 / 373.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000752/0.3565, allocations: 115.5 kB / 373.8 MB, free: 21.36 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.0001337/0.3567, allocations: 110 kB / 373.9 MB, free: 21.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009064/0.3576, allocations: 0.5766 MB / 374.5 MB, free: 20.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3576, allocations: 5.219 kB / 374.5 MB, free: 20.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.3581, allocations: 479.4 kB / 375 MB, free: 20.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004387/0.3586, allocations: 54.97 kB / 375 MB, free: 20.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.3598, allocations: 0.7727 MB / 375.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.3601, allocations: 0.7976 MB / 376.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.3602, allocations: 20.95 kB / 376.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.661e-05/0.3602, allocations: 24.31 kB / 376.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3602, allocations: 0 / 376.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of Templates: time 0.01076/0.371, allocations: 5.244 MB / 381.9 MB, free: 19.02 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