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.001615/0.001615, allocations: 108.2 kB / 16.51 MB, free: 6.707 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.001522/0.001523, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.463/1.463, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 52.19 kB / 300 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1392, allocations: 49.44 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005765/0.145, allocations: 3.515 MB / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.1466, allocations: 0.7482 MB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.1468, allocations: 4 kB / 353.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.1471, allocations: 55.55 kB / 353.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.1474, allocations: 115.1 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.1477, allocations: 95.8 kB / 353.9 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005869/0.1483, allocations: 0.4898 MB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003429/0.1487, allocations: 119.8 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.149, allocations: 163.4 kB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.1492, allocations: 207 kB / 354.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.626e-05/0.1493, allocations: 24 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-05/0.1493, allocations: 24 kB / 354.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.531e-05/0.1494, allocations: 79.67 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.1496, allocations: 206.9 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.1501, allocations: 466.3 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.1501, allocations: 0 / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1501, allocations: 0 / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.597e-06/0.1501, allocations: 0 / 355.7 MB, free: 14.52 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.001334/0.1515, allocations: 0.7168 MB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.1515, allocations: 8.031 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.1516, allocations: 48.38 kB / 356.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.1521, allocations: 307.3 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.1521, allocations: 28.97 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.1522, allocations: 28.38 kB / 356.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000703/0.1529, allocations: 363.1 kB / 357.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1529, allocations: 7.922 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.153, allocations: 12 kB / 357.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.153, allocations: 8 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005919/0.1536, allocations: 270.4 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.156, allocations: 1.422 MB / 358.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000498/0.1565, allocations: 226.3 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002462/0.1568, allocations: 108.8 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1568, allocations: 0 / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.1569, allocations: 38.56 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1569, allocations: 4 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001789/0.1587, allocations: 0.6962 MB / 359.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.1588, allocations: 55.41 kB / 360 MB, free: 9.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.1592, allocations: 304.6 kB / 360.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.1592, allocations: 33.7 kB / 360.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.1595, allocations: 212.1 kB / 360.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.565e-05/0.1595, allocations: 74.89 kB / 360.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.1597, allocations: 45.7 kB / 360.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.1599, allocations: 338.8 kB / 361 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.1601, allocations: 79.95 kB / 361.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.1603, allocations: 128.2 kB / 361.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.1608, allocations: 204.1 kB / 361.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1608, allocations: 4 kB / 361.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00079/0.1616, allocations: 351.5 kB / 361.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.1616, allocations: 4 kB / 361.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1616, allocations: 8.062 kB / 361.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.1621, allocations: 114.5 kB / 361.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.1623, allocations: 35.91 kB / 361.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004576/0.1669, allocations: 4.446 MB / 366.3 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.1672, allocations: 27.77 kB / 366.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.1672, allocations: 8.281 kB / 366.4 MB, free: 3.027 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.0002559/0.1675, allocations: 149.7 kB / 366.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.301e-05/0.1676, allocations: 31.62 kB / 366.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.856e-05/0.1676, allocations: 43.11 kB / 366.6 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1677, allocations: 12.05 kB / 366.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1677, allocations: 0 / 366.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1677, allocations: 0 / 366.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.1682, allocations: 381.1 kB / 367 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.1682, allocations: 3.984 kB / 367 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.1684, allocations: 19.98 kB / 367 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003432/0.1687, allocations: 114.4 kB / 367.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.1687, allocations: 4 kB / 367.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2529/0.4217, allocations: 4.443 MB / 371.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4217, allocations: 0 / 371.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008001/0.4225, allocations: 402.6 kB / 371.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.4227, allocations: 126.2 kB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.4227, allocations: 6.062 kB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.423, allocations: 21.27 kB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4231, allocations: 24.59 kB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.4231, allocations: 12.22 kB / 372.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002499/0.4234, allocations: 218.3 kB / 372.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4234, allocations: 1.531 kB / 372.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007506/0.4241, allocations: 115.2 kB / 372.5 MB, free: 22.52 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.000139/0.4243, allocations: 111.7 kB / 372.6 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008785/0.4252, allocations: 0.5629 MB / 373.1 MB, free: 22.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4252, allocations: 1.969 kB / 373.1 MB, free: 22.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004876/0.4257, allocations: 481.8 kB / 373.6 MB, free: 21.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.4262, allocations: 64.92 kB / 373.7 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4274, allocations: 0.7583 MB / 374.4 MB, free: 21.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.4277, allocations: 0.7949 MB / 375.2 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.4279, allocations: 28.19 kB / 375.2 MB, free: 20.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.428, allocations: 23.41 kB / 375.3 MB, free: 20.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.428, allocations: 0 / 375.3 MB, free: 20.61 MB / 302.1 MB Notification: Performance of Templates: time 0.0109/0.4389, allocations: 4.914 MB / 380.2 MB, free: 20.37 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