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.001311/0.001312, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.4 MB / 247.5 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 63.64 kB / 307.6 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.1007, allocations: 50.54 MB / 358.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005118/0.1058, allocations: 3.506 MB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.1075, allocations: 0.8493 MB / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.1077, allocations: 11.94 kB / 362.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.1079, allocations: 63.3 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.1082, allocations: 134.8 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1085, allocations: 143.8 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005247/0.1091, allocations: 0.5017 MB / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.1093, allocations: 143.2 kB / 363.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.1096, allocations: 195.3 kB / 363.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.1099, allocations: 211 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.435e-05/0.11, allocations: 40 kB / 364 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.1101, allocations: 44 kB / 364 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.454e-05/0.1102, allocations: 91.67 kB / 364.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.1104, allocations: 230.8 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.111, allocations: 490.2 kB / 364.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.111, allocations: 4 kB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.111, allocations: 0 / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.111, allocations: 0 / 364.8 MB, free: 7.41 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.001193/0.1122, allocations: 0.7245 MB / 365.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1122, allocations: 8.031 kB / 365.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003459/0.1126, allocations: 84.36 kB / 365.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.113, allocations: 319.2 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.1131, allocations: 21.03 kB / 365.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.1131, allocations: 32.38 kB / 366 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006503/0.1138, allocations: 359 kB / 366.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1138, allocations: 0 / 366.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.187e-05/0.1138, allocations: 23.98 kB / 366.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1139, allocations: 8 kB / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005804/0.1144, allocations: 262.4 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.1166, allocations: 1.426 MB / 368 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.1171, allocations: 218.3 kB / 368.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.1173, allocations: 112.8 kB / 368.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1173, allocations: 0 / 368.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.1174, allocations: 38.56 kB / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.1174, allocations: 0 / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001648/0.119, allocations: 0.7075 MB / 369.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.1191, allocations: 51.41 kB / 369.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.1194, allocations: 316.5 kB / 369.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.1195, allocations: 33.7 kB / 369.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.1197, allocations: 212.1 kB / 369.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.29e-05/0.1197, allocations: 74.86 kB / 369.8 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.1198, allocations: 49.7 kB / 369.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.12, allocations: 342.8 kB / 370.2 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.1202, allocations: 79.95 kB / 370.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1205, allocations: 120.2 kB / 370.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.1209, allocations: 208.1 kB / 370.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1209, allocations: 4 kB / 370.6 MB, free: 1.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007621/0.1217, allocations: 355.5 kB / 370.9 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1217, allocations: 11.27 kB / 370.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.1217, allocations: 4 kB / 370.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004387/0.1222, allocations: 118.5 kB / 371 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.1224, allocations: 31.92 kB / 371.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1612/0.2836, allocations: 4.964 MB / 376 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.2839, allocations: 24.75 kB / 376.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.2839, allocations: 8.156 kB / 376.1 MB, free: 15.93 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.0001509/0.2841, allocations: 153.1 kB / 376.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.2842, allocations: 36.38 kB / 376.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.789e-05/0.2842, allocations: 37.97 kB / 376.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.2842, allocations: 6 kB / 376.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2843, allocations: 0.5312 kB / 376.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2843, allocations: 1.875 kB / 376.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.2847, allocations: 375.3 kB / 376.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2847, allocations: 1.375 kB / 376.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.2848, allocations: 24.81 kB / 376.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003082/0.2851, allocations: 120.2 kB / 376.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.2852, allocations: 6.672 kB / 376.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.2878, allocations: 4.968 MB / 381.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2878, allocations: 1.969 kB / 381.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000557/0.2883, allocations: 406.9 kB / 382.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.2885, allocations: 130.1 kB / 382.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.2885, allocations: 1.281 kB / 382.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.2887, allocations: 23.88 kB / 382.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.523e-05/0.2888, allocations: 31.38 kB / 382.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.2889, allocations: 10.3 kB / 382.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.2891, allocations: 220 kB / 382.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2891, allocations: 0.5 kB / 382.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006682/0.2898, allocations: 116.3 kB / 382.7 MB, free: 10.42 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.0001072/0.2899, allocations: 112 kB / 382.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007774/0.2907, allocations: 0.5692 MB / 383.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2907, allocations: 4.062 kB / 383.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.2911, allocations: 487.4 kB / 383.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.2916, allocations: 57.66 kB / 383.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2926, allocations: 0.6664 MB / 384.6 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2928, allocations: 0.7985 MB / 385.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.2929, allocations: 25.73 kB / 385.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2929, allocations: 0 / 385.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of Templates: time 0.01029/0.3032, allocations: 8.442 MB / 393.9 MB, free: 5.848 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 -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.1.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