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.001673/0.001673, allocations: 114.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.001894/0.001895, allocations: 204.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.559/1.559, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 64.25 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1344, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004817/0.1393, allocations: 3.517 MB / 362.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.1408, allocations: 0.8374 MB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.141, allocations: 8 kB / 363.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.1412, allocations: 67.3 kB / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.1414, allocations: 134.8 kB / 363.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.1418, allocations: 139.8 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.1424, allocations: 0.5016 MB / 364.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.1426, allocations: 139.2 kB / 364.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002795/0.1429, allocations: 203.2 kB / 364.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.1432, allocations: 211 kB / 364.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.6e-05/0.1432, allocations: 40 kB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1434, allocations: 44 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.884e-05/0.1434, allocations: 95.62 kB / 364.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.1437, allocations: 218.9 kB / 365 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.1441, allocations: 494.2 kB / 365.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1442, allocations: 0 / 365.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1442, allocations: 0 / 365.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.1442, allocations: 0 / 365.5 MB, free: 6.723 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.001122/0.1453, allocations: 0.7323 MB / 366.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1454, allocations: 12.03 kB / 366.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.1457, allocations: 72.38 kB / 366.3 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.1462, allocations: 335.2 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.1462, allocations: 25.02 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.1463, allocations: 40.25 kB / 366.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.1469, allocations: 355.1 kB / 367.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1469, allocations: 0 / 367.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.447e-05/0.1469, allocations: 16 kB / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1469, allocations: 12 kB / 367.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005299/0.1475, allocations: 266.4 kB / 367.3 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1493, allocations: 1.411 MB / 368.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004131/0.1497, allocations: 226.3 kB / 369 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.1499, allocations: 112.8 kB / 369.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.15, allocations: 4 kB / 369.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.15, allocations: 38.56 kB / 369.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.15, allocations: 0 / 369.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001487/0.1515, allocations: 0.6984 MB / 369.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1516, allocations: 51.41 kB / 369.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.1519, allocations: 312.5 kB / 370.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1519, allocations: 37.64 kB / 370.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1521, allocations: 212.1 kB / 370.4 MB, free: 1.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.1521, allocations: 78.84 kB / 370.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-05/0.1522, allocations: 49.69 kB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1524, allocations: 342.8 kB / 370.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.1525, allocations: 79.95 kB / 371 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.1528, allocations: 120.2 kB / 371.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.1531, allocations: 204.1 kB / 371.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1531, allocations: 11.94 kB / 371.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006565/0.1538, allocations: 355.6 kB / 371.6 MB, free: 196 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1538, allocations: 4 kB / 371.6 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1538, allocations: 4 kB / 371.7 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004037/0.1543, allocations: 118.4 kB / 371.8 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.1544, allocations: 23.98 kB / 371.8 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2828/0.4373, allocations: 4.963 MB / 376.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.4377, allocations: 23.66 kB / 376.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.4378, allocations: 14.72 kB / 376.8 MB, free: 15.65 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.0003113/0.4381, allocations: 155.4 kB / 376.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.4382, allocations: 41.36 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.437e-05/0.4383, allocations: 41.36 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4383, allocations: 1.969 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4383, allocations: 0.75 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4383, allocations: 1.547 kB / 377 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007549/0.4391, allocations: 386.7 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4391, allocations: 0.6094 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.4393, allocations: 21.38 kB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004956/0.4398, allocations: 112.3 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.4398, allocations: 6.297 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004615/0.4444, allocations: 4.975 MB / 382.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.4445, allocations: 3.938 kB / 382.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.4453, allocations: 398.7 kB / 382.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.4455, allocations: 128 kB / 383 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.4456, allocations: 9.875 kB / 383 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.4458, allocations: 17.03 kB / 383.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.4459, allocations: 30.17 kB / 383.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.446, allocations: 5.078 kB / 383.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003585/0.4463, allocations: 221 kB / 383.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4463, allocations: 0 / 383.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008148/0.4472, allocations: 117 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.0002213/0.4474, allocations: 115.4 kB / 383.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4485, allocations: 0.5644 MB / 384.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4485, allocations: 3.906 kB / 384.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005376/0.449, allocations: 490.9 kB / 384.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.4495, allocations: 61.53 kB / 384.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.451, allocations: 0.6236 MB / 385.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.4516, allocations: 0.8 MB / 386.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.4518, allocations: 26.86 kB / 386.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.4518, allocations: 18.91 kB / 386.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4518, allocations: 1.281 kB / 386.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of Templates: time 0.01529/0.4671, allocations: 5.404 MB / 391.5 MB, free: 7.316 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 cvode -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