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.001262/0.001262, allocations: 95.34 kB / 16.31 MB, free: 5.996 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.001313/0.001313, allocations: 184 kB / 17.2 MB, free: 5.914 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.549/1.549, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002772, allocations: 8 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1354, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003582/0.139, allocations: 2.803 MB / 353.9 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1402, allocations: 0.7523 MB / 354.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.1404, allocations: 8 kB / 354.7 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.12e-05/0.1405, allocations: 47.61 kB / 354.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.1408, allocations: 159.5 kB / 354.9 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.141, allocations: 87.83 kB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000407/0.1414, allocations: 351.1 kB / 355.3 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.1417, allocations: 110.7 kB / 355.4 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1419, allocations: 155.4 kB / 355.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.1421, allocations: 183.2 kB / 355.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.425e-05/0.1422, allocations: 24 kB / 355.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.1422, allocations: 20 kB / 355.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.839e-05/0.1423, allocations: 59.75 kB / 355.9 MB, free: 6.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.908e-05/0.1424, allocations: 105.5 kB / 356 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003009/0.1427, allocations: 351 kB / 356.3 MB, free: 6.492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1427, allocations: 0 / 356.3 MB, free: 6.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1427, allocations: 4 kB / 356.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1427, allocations: 0 / 356.3 MB, free: 6.488 MB / 286.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.001029/0.1438, allocations: 0.6622 MB / 357 MB, free: 5.777 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1438, allocations: 8.031 kB / 357 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1439, allocations: 51.39 kB / 357 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.1443, allocations: 298.2 kB / 357.3 MB, free: 5.391 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.1443, allocations: 24.66 kB / 357.4 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.1444, allocations: 32 kB / 357.4 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.145, allocations: 354.8 kB / 357.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.145, allocations: 7.875 kB / 357.7 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.145, allocations: 12 kB / 357.7 MB, free: 4.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1451, allocations: 8 kB / 357.8 MB, free: 4.949 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005357/0.1456, allocations: 282.4 kB / 358 MB, free: 4.668 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1475, allocations: 1.426 MB / 359.5 MB, free: 3.141 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004059/0.1479, allocations: 242.2 kB / 359.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1479, allocations: 7.938 kB / 359.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1479, allocations: 34.56 kB / 359.7 MB, free: 2.844 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.1479, allocations: 0 / 359.7 MB, free: 2.844 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001456/0.1494, allocations: 0.7128 MB / 360.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.1495, allocations: 55.34 kB / 360.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.1498, allocations: 304.6 kB / 360.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1498, allocations: 25.7 kB / 360.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.1499, allocations: 212.1 kB / 361 MB, free: 1.445 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.15, allocations: 78.89 kB / 361.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.15, allocations: 8 kB / 361.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1502, allocations: 338.8 kB / 361.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.1504, allocations: 87.95 kB / 361.5 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1506, allocations: 124.2 kB / 361.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.1508, allocations: 91.91 kB / 361.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1508, allocations: 0 / 361.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007496/0.1516, allocations: 371.5 kB / 362.1 MB, free: 336 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1516, allocations: 7.953 kB / 362.1 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1516, allocations: 4 kB / 362.1 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003779/0.152, allocations: 114.6 kB / 362.2 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1522, allocations: 39.91 kB / 362.3 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/0.1556, allocations: 4.477 MB / 366.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1558, allocations: 31.8 kB / 366.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1558, allocations: 12 kB / 366.8 MB, free: 11.23 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 (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.0001724/0.156, allocations: 137.8 kB / 366.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.1561, allocations: 43.64 kB / 367 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.91e-05/0.1561, allocations: 43.16 kB / 367 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1561, allocations: 0 / 367 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1561, allocations: 0 / 367 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1561, allocations: 0 / 367 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.1566, allocations: 377.2 kB / 367.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1566, allocations: 0 / 367.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.1567, allocations: 27.92 kB / 367.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003046/0.157, allocations: 114.5 kB / 367.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.157, allocations: 3.953 kB / 367.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.1603, allocations: 4.481 MB / 372 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1603, allocations: 0 / 372 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006302/0.1609, allocations: 427.9 kB / 372.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1611, allocations: 128.6 kB / 372.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.1611, allocations: 0 / 372.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.1613, allocations: 31.92 kB / 372.6 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.1614, allocations: 27.97 kB / 372.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.1614, allocations: 8 kB / 372.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.1617, allocations: 215.3 kB / 372.8 MB, free: 4.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1617, allocations: 0 / 372.8 MB, free: 4.691 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006503/0.1623, allocations: 111.8 kB / 372.9 MB, free: 4.582 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 (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.0001297/0.1625, allocations: 107.2 kB / 373 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000819/0.1633, allocations: 0.5739 MB / 373.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.1633, allocations: 8.109 kB / 373.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004943/0.1638, allocations: 487.9 kB / 374.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.1642, allocations: 53.06 kB / 374.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.1653, allocations: 0.7506 MB / 374.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1656, allocations: 0.8029 MB / 375.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.1657, allocations: 23.53 kB / 375.7 MB, free: 1.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.801e-05/0.1658, allocations: 23.42 kB / 375.7 MB, free: 1.625 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1658, allocations: 0 / 375.7 MB, free: 1.625 MB / 302.1 MB Notification: Performance of Templates: time 0.008109/0.1739, allocations: 4.696 MB / 380.4 MB, free: 12.98 MB / 318.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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches