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.00178/0.00178, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.002366/0.002366, allocations: 192 kB / 18.51 MB, free: 4.508 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.472/1.472, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001346/0.001346, allocations: 51.92 kB / 280.6 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.1003, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005677/0.106, allocations: 3.442 MB / 330.7 MB, free: 1 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1082, allocations: 0.784 MB / 331.5 MB, free: 212 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004492/0.1087, allocations: 4 kB / 331.5 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.1091, allocations: 79.28 kB / 331.6 MB, free: 128 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000538/0.1096, allocations: 122.8 kB / 331.7 MB, free: 4 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.1101, allocations: 111.9 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008681/0.111, allocations: 0.5016 MB / 332.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.1113, allocations: 135.2 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.1116, allocations: 187.3 kB / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.1119, allocations: 215 kB / 332.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.706e-05/0.112, allocations: 40 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.653e-05/0.112, allocations: 40 kB / 332.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.265e-05/0.1121, allocations: 83.69 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.1124, allocations: 230.9 kB / 333.2 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004502/0.1128, allocations: 486.3 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1128, allocations: 0 / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1128, allocations: 0 / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1129, allocations: 0 / 333.7 MB, free: 14 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.001071/0.1139, allocations: 0.7207 MB / 334.4 MB, free: 13.22 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.114, allocations: 11.89 kB / 334.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.1141, allocations: 48.38 kB / 334.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.1144, allocations: 311.3 kB / 334.8 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.1145, allocations: 25.03 kB / 334.8 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.1145, allocations: 32.38 kB / 334.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.1151, allocations: 363 kB / 335.2 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.1151, allocations: 4 kB / 335.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.1152, allocations: 12 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1152, allocations: 8 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005267/0.1157, allocations: 270.4 kB / 335.5 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1177, allocations: 1.422 MB / 336.9 MB, free: 10.58 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.1182, allocations: 218.5 kB / 337.1 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.1184, allocations: 108.8 kB / 337.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.1184, allocations: 7.938 kB / 337.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1185, allocations: 34.97 kB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.1185, allocations: 4 kB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001499/0.12, allocations: 0.7017 MB / 338 MB, free: 9.422 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.12, allocations: 55.41 kB / 338 MB, free: 9.355 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.1203, allocations: 304.6 kB / 338.3 MB, free: 9.055 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.1204, allocations: 29.7 kB / 338.4 MB, free: 9.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.1205, allocations: 212.1 kB / 338.6 MB, free: 8.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.596e-05/0.1206, allocations: 74.91 kB / 338.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.43e-05/0.1207, allocations: 49.7 kB / 338.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1208, allocations: 338.8 kB / 339 MB, free: 8.336 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.121, allocations: 75.97 kB / 339.1 MB, free: 8.262 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1212, allocations: 124.2 kB / 339.2 MB, free: 8.125 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003609/0.1216, allocations: 204.1 kB / 339.4 MB, free: 7.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1216, allocations: 0 / 339.4 MB, free: 7.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000657/0.1223, allocations: 359.5 kB / 339.8 MB, free: 7.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1223, allocations: 8 kB / 339.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1223, allocations: 0 / 339.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004003/0.1227, allocations: 122.5 kB / 339.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.1229, allocations: 27.92 kB / 339.9 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.1266, allocations: 4.978 MB / 344.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.1268, allocations: 23.78 kB / 344.9 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.1269, allocations: 15.98 kB / 344.9 MB, free: 1.949 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.0001658/0.127, allocations: 141.8 kB / 345.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.1271, allocations: 35.56 kB / 345.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.1272, allocations: 39.17 kB / 345.1 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1272, allocations: 4.062 kB / 345.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1272, allocations: 4 kB / 345.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1272, allocations: 0 / 345.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003943/0.1276, allocations: 377.2 kB / 345.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1276, allocations: 0 / 345.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.1277, allocations: 23.92 kB / 345.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.128, allocations: 118.5 kB / 345.7 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.1281, allocations: 0 / 345.7 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/0.1315, allocations: 4.967 MB / 350.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1316, allocations: 0 / 350.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005868/0.1321, allocations: 406.3 kB / 351 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1323, allocations: 128.6 kB / 351.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.1323, allocations: 8 kB / 351.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1325, allocations: 19.98 kB / 351.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.1326, allocations: 27.95 kB / 351.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.1327, allocations: 7.938 kB / 351.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001912/0.1329, allocations: 219.1 kB / 351.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1329, allocations: 0 / 351.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.1335, allocations: 119.7 kB / 351.5 MB, free: 10.81 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.0001324/0.1337, allocations: 103.2 kB / 351.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008832/0.1346, allocations: 0.5744 MB / 352.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1346, allocations: 384 / 352.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005127/0.1351, allocations: 495.8 kB / 352.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004692/0.1356, allocations: 53.14 kB / 352.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.1367, allocations: 0.6298 MB / 353.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.137, allocations: 0.803 MB / 354.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.1371, allocations: 18.98 kB / 354.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.1372, allocations: 23.42 kB / 354.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1372, allocations: 0 / 354.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of Templates: time 0.009232/0.1464, allocations: 5.38 MB / 359.6 MB, free: 2.605 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/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