Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001528/0.001528, 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.001294/0.001294, 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 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003077/0.003077, allocations: 60.16 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1099, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005051/0.115, allocations: 3.506 MB / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.1166, allocations: 0.8532 MB / 362.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.1168, allocations: 4 kB / 362.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.117, allocations: 71.28 kB / 362.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.1173, allocations: 130.8 kB / 363 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003599/0.1176, allocations: 143.8 kB / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005287/0.1182, allocations: 0.4978 MB / 363.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.1184, allocations: 147.2 kB / 363.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.1187, allocations: 187.3 kB / 363.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.119, allocations: 219 kB / 364.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.1191, allocations: 36 kB / 364.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.1192, allocations: 48 kB / 364.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-05/0.1193, allocations: 83.69 kB / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.1195, allocations: 226.8 kB / 364.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005104/0.12, allocations: 494.2 kB / 365 MB, free: 7.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.12, allocations: 0 / 365 MB, free: 7.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.12, allocations: 4 kB / 365 MB, free: 7.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.12, allocations: 0 / 365 MB, free: 7.293 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.001184/0.1212, allocations: 0.7323 MB / 365.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.1213, allocations: 8.031 kB / 365.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003474/0.1216, allocations: 68.44 kB / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.122, allocations: 327.2 kB / 366.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.1221, allocations: 25.03 kB / 366.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.1221, allocations: 32.38 kB / 366.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006237/0.1228, allocations: 359 kB / 366.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1228, allocations: 0 / 366.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.1228, allocations: 16 kB / 366.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1228, allocations: 8 kB / 366.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005627/0.1234, allocations: 270.4 kB / 366.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.1255, allocations: 1.418 MB / 368.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.1259, allocations: 222.4 kB / 368.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.1262, allocations: 108.8 kB / 368.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.1262, allocations: 4 kB / 368.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.1262, allocations: 38.55 kB / 368.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.1262, allocations: 4 kB / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001555/0.1278, allocations: 0.6976 MB / 369.3 MB, free: 2.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.1279, allocations: 63.33 kB / 369.4 MB, free: 2.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1282, allocations: 312.6 kB / 369.7 MB, free: 2.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1282, allocations: 29.7 kB / 369.7 MB, free: 2.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1284, allocations: 212.1 kB / 369.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.757e-05/0.1285, allocations: 86.83 kB / 370 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.562e-05/0.1286, allocations: 45.7 kB / 370.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1287, allocations: 338.8 kB / 370.4 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.129, allocations: 75.95 kB / 370.5 MB, free: 1.504 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.1292, allocations: 132.2 kB / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.1296, allocations: 200.1 kB / 370.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1296, allocations: 4 kB / 370.8 MB, free: 1.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007351/0.1304, allocations: 359.5 kB / 371.2 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1304, allocations: 4 kB / 371.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1304, allocations: 0 / 371.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004042/0.1308, allocations: 126.5 kB / 371.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.131, allocations: 31.92 kB / 371.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1469/0.2778, allocations: 4.956 MB / 376.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.2781, allocations: 26.69 kB / 376.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.2782, allocations: 13.91 kB / 376.3 MB, free: 15.7 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.0001585/0.2783, allocations: 147.7 kB / 376.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.685e-05/0.2784, allocations: 38.25 kB / 376.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.2785, allocations: 36.5 kB / 376.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2785, allocations: 2.312 kB / 376.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2785, allocations: 3.469 kB / 376.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2785, allocations: 1.172 kB / 376.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.2789, allocations: 381.1 kB / 376.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.2789, allocations: 1.656 kB / 376.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.2791, allocations: 26.7 kB / 376.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.2794, allocations: 114.1 kB / 377 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2794, allocations: 8.188 kB / 377.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.2822, allocations: 4.973 MB / 382 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2822, allocations: 0 / 382 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005766/0.2828, allocations: 406.5 kB / 382.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.2829, allocations: 129.1 kB / 382.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.283, allocations: 1.938 kB / 382.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.2832, allocations: 19.97 kB / 382.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.2833, allocations: 38.81 kB / 382.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2833, allocations: 9.578 kB / 382.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.2836, allocations: 220.2 kB / 382.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2836, allocations: 0.5 kB / 382.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006729/0.2843, allocations: 119.6 kB / 383 MB, free: 10.14 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.0001054/0.2844, allocations: 104.6 kB / 383.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007765/0.2851, allocations: 0.5741 MB / 383.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2852, allocations: 1.125 kB / 383.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004049/0.2856, allocations: 483.6 kB / 384.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.286, allocations: 63.7 kB / 384.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009819/0.287, allocations: 0.6646 MB / 384.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.2873, allocations: 0.7948 MB / 385.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.2873, allocations: 25.59 kB / 385.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2873, allocations: 0 / 385.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of Templates: time 0.01023/0.2976, allocations: 8.447 MB / 394.1 MB, free: 5.57 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches