Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001976/0.001976, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002364/0.002364, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.22 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1324, allocations: 50.52 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004989/0.1374, allocations: 3.513 MB / 362.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.139, allocations: 0.8413 MB / 363.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.1391, allocations: 11.94 kB / 363.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.1394, allocations: 67.3 kB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.1396, allocations: 134.8 kB / 363.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.14, allocations: 139.8 kB / 363.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005093/0.1405, allocations: 0.4977 MB / 364.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.1408, allocations: 143.2 kB / 364.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1411, allocations: 195.3 kB / 364.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.1413, allocations: 215 kB / 364.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.1414, allocations: 40 kB / 364.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.1415, allocations: 47.98 kB / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.42e-05/0.1416, allocations: 91.69 kB / 364.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.1418, allocations: 222.9 kB / 365 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.1423, allocations: 494.2 kB / 365.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1423, allocations: 0 / 365.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1423, allocations: 3.938 kB / 365.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1423, allocations: 0 / 365.5 MB, free: 6.73 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.001162/0.1435, allocations: 0.7323 MB / 366.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.1436, allocations: 12.03 kB / 366.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00036/0.1439, allocations: 68.44 kB / 366.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.1445, allocations: 335.2 kB / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.1445, allocations: 21.03 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.1446, allocations: 36.31 kB / 366.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.1452, allocations: 359 kB / 367.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1452, allocations: 3.984 kB / 367.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.1452, allocations: 16 kB / 367.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.1453, allocations: 12 kB / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005245/0.1458, allocations: 262.4 kB / 367.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1478, allocations: 1.411 MB / 368.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.1482, allocations: 225.6 kB / 369 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.1484, allocations: 108.8 kB / 369.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.1486, allocations: 4 kB / 369.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1486, allocations: 38.56 kB / 369.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1486, allocations: 0 / 369.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001565/0.1502, allocations: 0.6983 MB / 369.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.1502, allocations: 55.41 kB / 369.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.1506, allocations: 312.5 kB / 370.2 MB, free: 1.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.1506, allocations: 33.7 kB / 370.2 MB, free: 1.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.1508, allocations: 208.1 kB / 370.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.235e-05/0.1508, allocations: 82.84 kB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.149e-05/0.1509, allocations: 49.69 kB / 370.5 MB, free: 1.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1511, allocations: 342.8 kB / 370.9 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.1513, allocations: 75.95 kB / 371 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.1515, allocations: 124.2 kB / 371.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.1519, allocations: 208.1 kB / 371.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1519, allocations: 4 kB / 371.3 MB, free: 0.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006876/0.1526, allocations: 359.5 kB / 371.6 MB, free: 220 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1526, allocations: 4.281 kB / 371.6 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.1526, allocations: 4 kB / 371.6 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/0.1531, allocations: 118.5 kB / 371.8 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.1533, allocations: 31.86 kB / 371.8 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2656/0.4189, allocations: 4.96 MB / 376.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.4192, allocations: 26.58 kB / 376.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.4192, allocations: 9.438 kB / 376.8 MB, free: 15.64 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.0001712/0.4194, allocations: 162 kB / 376.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.4195, allocations: 38.14 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.09e-05/0.4195, allocations: 40.53 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4195, allocations: 3.281 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.4195, allocations: 1.344 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.4196, allocations: 2.172 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.42, allocations: 380 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.42, allocations: 2.766 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.4201, allocations: 19.89 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000318/0.4204, allocations: 113.8 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.4205, allocations: 5.672 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002725/0.4232, allocations: 4.973 MB / 382.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4232, allocations: 0 / 382.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.4238, allocations: 405.6 kB / 382.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.4239, allocations: 126.1 kB / 383 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.4239, allocations: 10.66 kB / 383 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.4242, allocations: 20.02 kB / 383.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.12e-05/0.4243, allocations: 23.78 kB / 383.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.4243, allocations: 8.875 kB / 383.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002501/0.4246, allocations: 224.3 kB / 383.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4246, allocations: 0 / 383.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000621/0.4252, allocations: 113.4 kB / 383.4 MB, free: 10.04 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.0001172/0.4253, allocations: 102 kB / 383.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000744/0.4261, allocations: 0.5731 MB / 384.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4261, allocations: 4 kB / 384.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004048/0.4265, allocations: 483.8 kB / 384.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.4269, allocations: 65.95 kB / 384.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009984/0.4279, allocations: 0.6362 MB / 385.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.4282, allocations: 0.7985 MB / 386.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.421e-05/0.4283, allocations: 22.2 kB / 386.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.4283, allocations: 23.81 kB / 386.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4283, allocations: 0.875 kB / 386.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of Templates: time 0.01044/0.4388, allocations: 5.403 MB / 391.5 MB, free: 7.328 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches