Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001748/0.001748, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009993/0.0009993, allocations: 106.9 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004052, allocations: 11.94 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2309, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002926/0.2339, allocations: 2.992 MB / 410.5 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.2354, allocations: 0.7673 MB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.2358, allocations: 8 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.2361, allocations: 44.36 kB / 411.3 MB, free: 24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.2366, allocations: 119.6 kB / 411.4 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.2371, allocations: 79.84 kB / 411.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.2376, allocations: 465.8 kB / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.2379, allocations: 107.6 kB / 412.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.2383, allocations: 167.3 kB / 412.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.2386, allocations: 175.2 kB / 412.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.213e-05/0.2387, allocations: 20 kB / 412.4 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.2388, allocations: 28 kB / 412.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.822e-05/0.2389, allocations: 67.69 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.239, allocations: 105.5 kB / 412.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.2393, allocations: 355.9 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2393, allocations: 0 / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2393, allocations: 3.938 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.2393, allocations: 0 / 413 MB, free: 22.33 MB / 298.7 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.001052/0.2404, allocations: 0.6622 MB / 413.6 MB, free: 21.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2404, allocations: 12.03 kB / 413.6 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/0.2408, allocations: 87.41 kB / 413.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2412, allocations: 294.2 kB / 414 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.2412, allocations: 20.66 kB / 414 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.2413, allocations: 32 kB / 414.1 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005761/0.2419, allocations: 362.7 kB / 414.4 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2419, allocations: 0 / 414.4 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.2419, allocations: 16 kB / 414.4 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2419, allocations: 11.98 kB / 414.4 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/0.2424, allocations: 278.4 kB / 414.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.2442, allocations: 1.434 MB / 416.1 MB, free: 18.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.2445, allocations: 235.2 kB / 416.4 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.2447, allocations: 112.8 kB / 416.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.2448, allocations: 0 / 416.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.2448, allocations: 38.56 kB / 416.5 MB, free: 18.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.2448, allocations: 4 kB / 416.5 MB, free: 18.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001333/0.2461, allocations: 0.7182 MB / 417.2 MB, free: 17.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.2462, allocations: 55.41 kB / 417.3 MB, free: 17.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.2464, allocations: 304.5 kB / 417.6 MB, free: 17.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.2465, allocations: 33.7 kB / 417.6 MB, free: 17.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.573e-05/0.2465, allocations: 212.1 kB / 417.8 MB, free: 17.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.2466, allocations: 71 kB / 417.9 MB, free: 17.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.2466, allocations: 4 kB / 417.9 MB, free: 17.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.993e-05/0.2467, allocations: 342.8 kB / 418.2 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.2469, allocations: 83.95 kB / 418.3 MB, free: 16.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.247, allocations: 132.2 kB / 418.5 MB, free: 16.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.2472, allocations: 91.91 kB / 418.5 MB, free: 16.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2472, allocations: 0 / 418.5 MB, free: 16.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006432/0.2479, allocations: 371.5 kB / 418.9 MB, free: 16.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2479, allocations: 8.062 kB / 418.9 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2479, allocations: 4 kB / 418.9 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.2483, allocations: 114.4 kB / 419 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2485, allocations: 35.97 kB / 419.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.2511, allocations: 4.453 MB / 423.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.2513, allocations: 23.88 kB / 423.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.2514, allocations: 8 kB / 423.6 MB, free: 10.95 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.2515, allocations: 153.8 kB / 423.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.2516, allocations: 35.62 kB / 423.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.2516, allocations: 35.17 kB / 423.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2516, allocations: 3.938 kB / 423.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2516, allocations: 192 / 423.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2516, allocations: 288 / 423.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.2519, allocations: 389.2 kB / 424.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.252, allocations: 3.938 kB / 424.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2521, allocations: 31.92 kB / 424.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002911/0.2524, allocations: 106.5 kB / 424.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.2524, allocations: 4 kB / 424.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.2548, allocations: 4.446 MB / 428.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2549, allocations: 0 / 428.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005142/0.2554, allocations: 413.6 kB / 429.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.2555, allocations: 128.6 kB / 429.3 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.2555, allocations: 7.938 kB / 429.3 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.2558, allocations: 28.17 kB / 429.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.2559, allocations: 31.95 kB / 429.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2559, allocations: 8 kB / 429.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001592/0.256, allocations: 215.1 kB / 429.6 MB, free: 4.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.256, allocations: 0 / 429.6 MB, free: 4.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005748/0.2566, allocations: 115.7 kB / 429.7 MB, free: 4.324 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001302/0.2568, allocations: 99.25 kB / 429.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007394/0.2575, allocations: 0.5855 MB / 430.4 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2575, allocations: 0 / 430.4 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003809/0.2579, allocations: 488.1 kB / 430.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.2583, allocations: 53.58 kB / 430.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009984/0.2593, allocations: 0.7938 MB / 431.7 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.2596, allocations: 0.7988 MB / 432.5 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.344e-05/0.2596, allocations: 19.44 kB / 432.5 MB, free: 1.363 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2596, allocations: 7.938 kB / 432.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of Templates: time 0.01073/0.2704, allocations: 8.252 MB / 440.8 MB, free: 9.125 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches