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.001405/0.001405, allocations: 113 kB / 17.68 MB, free: 5.473 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.001543/0.001543, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.471/1.471, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 56.55 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1138, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004643/0.1185, allocations: 3.472 MB / 355 MB, free: 212 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.1199, allocations: 0.7478 MB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.1201, allocations: 11.94 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.1204, allocations: 67.28 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002323/0.1206, allocations: 134.8 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.1209, allocations: 115.8 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005079/0.1214, allocations: 0.5015 MB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/0.1217, allocations: 147.2 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.122, allocations: 191.3 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.1222, allocations: 203.1 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.1223, allocations: 40 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.278e-05/0.1223, allocations: 40 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.848e-05/0.1224, allocations: 87.62 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.1226, allocations: 226.9 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.1231, allocations: 482.3 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1231, allocations: 0 / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1231, allocations: 4 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1231, allocations: 3.938 kB / 357.9 MB, free: 13.22 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.001124/0.1242, allocations: 0.7207 MB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1243, allocations: 15.89 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.148e-05/0.1244, allocations: 44.38 kB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.1248, allocations: 311.3 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1249, allocations: 25.03 kB / 359 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.1249, allocations: 40.3 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006056/0.1255, allocations: 359.1 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1255, allocations: 0 / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.1256, allocations: 16 kB / 359.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1256, allocations: 8 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005274/0.1261, allocations: 270.4 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.1281, allocations: 1.407 MB / 361.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.1285, allocations: 222.3 kB / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.1287, allocations: 108.8 kB / 361.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1288, allocations: 3.984 kB / 361.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.1288, allocations: 42.55 kB / 361.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.1288, allocations: 0 / 361.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001463/0.1303, allocations: 0.6903 MB / 362.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.1303, allocations: 63.33 kB / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.1306, allocations: 300.6 kB / 362.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1307, allocations: 33.7 kB / 362.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.1308, allocations: 216.1 kB / 362.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.637e-05/0.1309, allocations: 70.92 kB / 362.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.08e-05/0.131, allocations: 45.7 kB / 362.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1311, allocations: 350.7 kB / 363.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.1313, allocations: 71.97 kB / 363.3 MB, free: 7.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.1315, allocations: 132.7 kB / 363.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.1319, allocations: 196.1 kB / 363.6 MB, free: 7.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1319, allocations: 0 / 363.6 MB, free: 7.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000696/0.1326, allocations: 359.5 kB / 364 MB, free: 6.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1327, allocations: 4 kB / 364 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1327, allocations: 7.938 kB / 364 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/0.1331, allocations: 114.6 kB / 364.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.1333, allocations: 35.97 kB / 364.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.1371, allocations: 4.97 MB / 369.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.1374, allocations: 19.84 kB / 369.1 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.1374, allocations: 11.98 kB / 369.1 MB, free: 1.191 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.000206/0.1376, allocations: 153 kB / 369.3 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.447e-05/0.1377, allocations: 43.5 kB / 369.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.721e-05/0.1378, allocations: 35.17 kB / 369.4 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1378, allocations: 4 kB / 369.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1378, allocations: 0 / 369.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1378, allocations: 0 / 369.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004161/0.1382, allocations: 385.3 kB / 369.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1382, allocations: 0 / 369.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.1383, allocations: 23.97 kB / 369.8 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003157/0.1387, allocations: 114.6 kB / 369.9 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.1387, allocations: 12 kB / 369.9 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2664/0.4052, allocations: 4.954 MB / 374.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4052, allocations: 0 / 374.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007855/0.406, allocations: 398.4 kB / 375.2 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.4062, allocations: 128 kB / 375.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.4062, allocations: 5.875 kB / 375.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.4065, allocations: 22.8 kB / 375.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.4066, allocations: 23.05 kB / 375.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.4067, allocations: 14.98 kB / 375.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003199/0.407, allocations: 216.6 kB / 375.6 MB, free: 20.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.407, allocations: 0 / 375.6 MB, free: 20.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000806/0.4078, allocations: 113 kB / 375.8 MB, free: 20.73 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.0001805/0.408, allocations: 109.8 kB / 375.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.4092, allocations: 0.5757 MB / 376.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4092, allocations: 1.406 kB / 376.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005818/0.4098, allocations: 482.9 kB / 376.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/0.4103, allocations: 60.86 kB / 377 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.4123, allocations: 0.627 MB / 377.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006381/0.4129, allocations: 0.7922 MB / 378.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.4131, allocations: 26.73 kB / 378.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.4132, allocations: 20.02 kB / 378.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4132, allocations: 0 / 378.4 MB, free: 18.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01601/0.4292, allocations: 5.393 MB / 383.8 MB, free: 18.38 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 -s gbode -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/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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches