Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001272/0.001272, allocations: 109.4 kB / 18.36 MB, free: 4.637 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.001334/0.001334, allocations: 192 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 51.92 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1018, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005273/0.1071, allocations: 3.446 MB / 332.2 MB, free: 300 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.1089, allocations: 0.7838 MB / 333 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004841/0.1095, allocations: 7.938 kB / 333 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003099/0.1098, allocations: 67.36 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005054/0.1103, allocations: 134.8 kB / 333.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1107, allocations: 107.8 kB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007906/0.1115, allocations: 0.4978 MB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/0.1118, allocations: 143.2 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.1121, allocations: 195.3 kB / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.1124, allocations: 203.1 kB / 334.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.537e-05/0.1125, allocations: 40 kB / 334.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.8e-05/0.1125, allocations: 40 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.108e-05/0.1126, allocations: 91.62 kB / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.1129, allocations: 222.9 kB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.1134, allocations: 490.3 kB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1134, allocations: 0 / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1134, allocations: 0 / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1134, allocations: 4 kB / 335.2 MB, free: 13.28 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.001105/0.1145, allocations: 0.7129 MB / 335.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.1146, allocations: 15.89 kB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.688e-05/0.1147, allocations: 56.25 kB / 335.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.1151, allocations: 315.3 kB / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.1152, allocations: 25.02 kB / 336.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/0.1152, allocations: 32.38 kB / 336.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.1158, allocations: 359.1 kB / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1158, allocations: 0 / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.1159, allocations: 19.98 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1159, allocations: 8 kB / 336.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.1164, allocations: 262.4 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1183, allocations: 1.415 MB / 338.4 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.1187, allocations: 218.5 kB / 338.6 MB, free: 9.652 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.1189, allocations: 116.7 kB / 338.7 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.119, allocations: 4 kB / 338.7 MB, free: 9.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.119, allocations: 34.97 kB / 338.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.119, allocations: 0 / 338.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001468/0.1205, allocations: 0.7018 MB / 339.4 MB, free: 8.715 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1205, allocations: 55.41 kB / 339.5 MB, free: 8.648 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.1208, allocations: 300.6 kB / 339.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1209, allocations: 33.64 kB / 339.8 MB, free: 8.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.121, allocations: 212.1 kB / 340 MB, free: 8.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.465e-05/0.1211, allocations: 82.89 kB / 340.1 MB, free: 8.016 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.1212, allocations: 49.7 kB / 340.1 MB, free: 7.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1213, allocations: 334.8 kB / 340.5 MB, free: 7.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.1215, allocations: 79.95 kB / 340.5 MB, free: 7.547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.1217, allocations: 124.2 kB / 340.7 MB, free: 7.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.1221, allocations: 200.1 kB / 340.9 MB, free: 7.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1221, allocations: 3.938 kB / 340.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006854/0.1228, allocations: 351.5 kB / 341.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1228, allocations: 8 kB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1228, allocations: 0 / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004083/0.1233, allocations: 122.5 kB / 341.3 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.1234, allocations: 31.97 kB / 341.4 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.1274, allocations: 4.963 MB / 346.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.1276, allocations: 31.67 kB / 346.4 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1277, allocations: 12 kB / 346.4 MB, free: 1.25 MB / 286.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.0002155/0.1279, allocations: 145.8 kB / 346.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.128, allocations: 39.55 kB / 346.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.719e-05/0.128, allocations: 43.23 kB / 346.6 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1281, allocations: 0 / 346.6 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1281, allocations: 0 / 346.6 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1281, allocations: 4 kB / 346.6 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.1285, allocations: 377.2 kB / 347 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1285, allocations: 128 / 347 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1286, allocations: 23.98 kB / 347 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003239/0.129, allocations: 122.5 kB / 347.1 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.129, allocations: 4 kB / 347.1 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003565/0.1326, allocations: 4.963 MB / 352.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1326, allocations: 0 / 352.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.1332, allocations: 406.3 kB / 352.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.1333, allocations: 128.6 kB / 352.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.1334, allocations: 8 kB / 352.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.1336, allocations: 20.17 kB / 352.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.1337, allocations: 19.97 kB / 352.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.1337, allocations: 19.92 kB / 352.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.134, allocations: 215.1 kB / 352.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.134, allocations: 4 kB / 352.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007692/0.1348, allocations: 115.7 kB / 353 MB, free: 10.1 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.0001952/0.135, allocations: 111.2 kB / 353.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009293/0.1359, allocations: 0.5663 MB / 353.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1359, allocations: 0 / 353.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005161/0.1364, allocations: 487.7 kB / 354.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.1369, allocations: 53.75 kB / 354.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.138, allocations: 0.6187 MB / 354.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.1383, allocations: 0.7991 MB / 355.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.1385, allocations: 30.91 kB / 355.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.104e-05/0.1385, allocations: 15.44 kB / 355.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1385, allocations: 0 / 355.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of Templates: time 0.009981/0.1485, allocations: 5.391 MB / 361.1 MB, free: 1.902 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches