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.001414/0.001414, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.66/1.66, allocations: 227.4 MB / 246.7 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 59.84 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1342, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005864/0.1401, allocations: 3.506 MB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1423, allocations: 0.8493 MB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.1428, allocations: 11.94 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003115/0.1431, allocations: 67.3 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003776/0.1435, allocations: 130.8 kB / 362 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.144, allocations: 139.8 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005055/0.1445, allocations: 0.5017 MB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1448, allocations: 139.2 kB / 362.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.1451, allocations: 195.3 kB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002561/0.1453, allocations: 207 kB / 363.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-05/0.1454, allocations: 44 kB / 363.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1455, allocations: 40 kB / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.1456, allocations: 91.69 kB / 363.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.1458, allocations: 230.8 kB / 363.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004827/0.1463, allocations: 490.3 kB / 364.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1463, allocations: 4 kB / 364.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1463, allocations: 0 / 364.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1464, allocations: 0 / 364.1 MB, free: 7.465 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.00115/0.1475, allocations: 0.7245 MB / 364.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1476, allocations: 12.03 kB / 364.8 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.1479, allocations: 72.44 kB / 364.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.1483, allocations: 323.2 kB / 365.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.1483, allocations: 25.03 kB / 365.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.1484, allocations: 32.36 kB / 365.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/0.149, allocations: 363 kB / 365.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.149, allocations: 0 / 365.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.1491, allocations: 12 kB / 365.6 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1491, allocations: 12 kB / 365.6 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005401/0.1496, allocations: 270.4 kB / 365.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.1517, allocations: 1.418 MB / 367.3 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.1522, allocations: 225.6 kB / 367.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.1524, allocations: 112.8 kB / 367.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.1524, allocations: 4 kB / 367.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.1525, allocations: 34.56 kB / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.1525, allocations: 7.875 kB / 367.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001574/0.1541, allocations: 0.7022 MB / 368.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1541, allocations: 55.41 kB / 368.4 MB, free: 2.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.1545, allocations: 312.6 kB / 368.8 MB, free: 2.473 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1545, allocations: 29.7 kB / 368.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1547, allocations: 216.1 kB / 369 MB, free: 2.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.1547, allocations: 74.84 kB / 369.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.365e-05/0.1548, allocations: 49.7 kB / 369.1 MB, free: 2.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.155, allocations: 346.8 kB / 369.5 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.1553, allocations: 75.97 kB / 369.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.1556, allocations: 124.2 kB / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004085/0.156, allocations: 204.1 kB / 369.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.156, allocations: 3.938 kB / 369.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006996/0.1567, allocations: 355.5 kB / 370.2 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1567, allocations: 8 kB / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1567, allocations: 0 / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000418/0.1572, allocations: 118.5 kB / 370.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.1574, allocations: 39.91 kB / 370.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1907/0.348, allocations: 4.957 MB / 375.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.3483, allocations: 27.02 kB / 375.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.3484, allocations: 10.08 kB / 375.4 MB, free: 15.86 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.000176/0.3485, allocations: 149 kB / 375.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.3486, allocations: 39.08 kB / 375.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.489e-05/0.3487, allocations: 40.59 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3487, allocations: 5.047 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3487, allocations: 3.719 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3487, allocations: 1.875 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005296/0.3493, allocations: 377.8 kB / 376 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3493, allocations: 1.672 kB / 376 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.3494, allocations: 20.14 kB / 376 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003763/0.3498, allocations: 117.8 kB / 376.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.3498, allocations: 5.062 kB / 376.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/0.3529, allocations: 4.969 MB / 381.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3529, allocations: 0 / 381.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006257/0.3535, allocations: 408.3 kB / 381.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.3537, allocations: 129.1 kB / 381.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.3537, allocations: 7.016 kB / 381.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.354, allocations: 20.3 kB / 381.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.653e-05/0.3541, allocations: 28.12 kB / 381.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3541, allocations: 7.531 kB / 381.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002784/0.3544, allocations: 221.1 kB / 381.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3544, allocations: 0 / 381.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007747/0.3552, allocations: 118.3 kB / 382 MB, free: 10.35 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.0001467/0.3553, allocations: 114.8 kB / 382.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008558/0.3562, allocations: 0.5682 MB / 382.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3562, allocations: 0.5 kB / 382.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004551/0.3567, allocations: 493.9 kB / 383.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.3572, allocations: 62.03 kB / 383.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3584, allocations: 0.6406 MB / 383.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3586, allocations: 0.7948 MB / 384.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.3588, allocations: 28.98 kB / 384.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.3588, allocations: 19.47 kB / 384.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.3588, allocations: 1.375 kB / 384.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of Templates: time 0.0119/0.3707, allocations: 5.382 MB / 390.1 MB, free: 7.625 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 -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/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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches