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.0009892/0.0009892, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 208.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002462, allocations: 8 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09253, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003966/0.09654, allocations: 3.147 MB / 363.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.09827, allocations: 0.8416 MB / 363.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003558/0.09865, allocations: 4 kB / 363.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.09891, allocations: 51.61 kB / 364 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004144/0.09934, allocations: 115 kB / 364.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.09976, allocations: 127.8 kB / 364.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006572/0.1004, allocations: 497.7 kB / 364.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.1007, allocations: 115.9 kB / 364.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.1011, allocations: 175.2 kB / 365 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.1014, allocations: 179.1 kB / 365.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.146e-05/0.1015, allocations: 20 kB / 365.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.1016, allocations: 24 kB / 365.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.692e-05/0.1017, allocations: 79.55 kB / 365.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.1019, allocations: 228.6 kB / 365.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.1023, allocations: 351 kB / 365.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1023, allocations: 4 kB / 365.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1023, allocations: 0 / 365.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.1023, allocations: 0 / 365.8 MB, free: 7.324 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.00113/0.1035, allocations: 0.6701 MB / 366.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1035, allocations: 12.03 kB / 366.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.1039, allocations: 84.34 kB / 366.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.1044, allocations: 319.2 kB / 366.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.1044, allocations: 25.03 kB / 366.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.721e-05/0.1045, allocations: 28.38 kB / 367 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006602/0.1051, allocations: 371 kB / 367.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1052, allocations: 0 / 367.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.1052, allocations: 12 kB / 367.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1052, allocations: 8 kB / 367.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005879/0.1058, allocations: 282.4 kB / 367.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.108, allocations: 1.442 MB / 369.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004438/0.1084, allocations: 230.3 kB / 369.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.1087, allocations: 116.8 kB / 369.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1087, allocations: 0 / 369.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.1088, allocations: 42.5 kB / 369.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.232e-06/0.1088, allocations: 0 / 369.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0016/0.1104, allocations: 0.725 MB / 370.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.1104, allocations: 51.41 kB / 370.2 MB, free: 2.637 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/0.1108, allocations: 316.5 kB / 370.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.1108, allocations: 29.7 kB / 370.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.111, allocations: 216.2 kB / 370.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.1111, allocations: 74.84 kB / 370.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.465e-05/0.1111, allocations: 33.7 kB / 370.9 MB, free: 1.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1112, allocations: 338.8 kB / 371.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1115, allocations: 91.95 kB / 371.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.1117, allocations: 132.2 kB / 371.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.1121, allocations: 212.1 kB / 371.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1121, allocations: 0 / 371.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007388/0.1128, allocations: 375.6 kB / 372 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1129, allocations: 4 kB / 372 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1129, allocations: 4 kB / 372 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003979/0.1133, allocations: 118.4 kB / 372.1 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.1135, allocations: 31.98 kB / 372.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1727/0.2862, allocations: 4.451 MB / 376.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.2865, allocations: 34.39 kB / 376.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.2865, allocations: 7.438 kB / 376.6 MB, free: 15.36 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.0002017/0.2867, allocations: 155.5 kB / 376.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/0.2869, allocations: 31.56 kB / 376.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.939e-05/0.2869, allocations: 39.02 kB / 376.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2869, allocations: 6.75 kB / 376.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.287, allocations: 1.266 kB / 376.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.287, allocations: 1.219 kB / 376.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.2874, allocations: 379.5 kB / 377.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2874, allocations: 0.8438 kB / 377.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.2876, allocations: 22.81 kB / 377.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003481/0.2879, allocations: 121.6 kB / 377.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.288, allocations: 5.094 kB / 377.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002853/0.2908, allocations: 4.451 MB / 381.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2908, allocations: 1.031 kB / 381.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006225/0.2915, allocations: 414.5 kB / 382.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.2916, allocations: 128.5 kB / 382.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.2916, allocations: 5.719 kB / 382.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.2919, allocations: 29.16 kB / 382.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.292, allocations: 25.11 kB / 382.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.292, allocations: 8.656 kB / 382.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002493/0.2923, allocations: 220.4 kB / 382.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2923, allocations: 4 kB / 382.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007254/0.293, allocations: 117.7 kB / 382.8 MB, free: 10.63 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.0001212/0.2931, allocations: 101.1 kB / 382.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008581/0.294, allocations: 0.5858 MB / 383.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.294, allocations: 3.656 kB / 383.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004527/0.2945, allocations: 490 kB / 383.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004692/0.295, allocations: 67.62 kB / 384 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.2961, allocations: 0.835 MB / 384.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.2964, allocations: 0.7956 MB / 385.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.2965, allocations: 19.84 kB / 385.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2965, allocations: 0 / 385.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of Templates: time 0.01209/0.3086, allocations: 8.393 MB / 394 MB, free: 5.918 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.0.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