Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008709/0.000871, allocations: 179.3 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007404/0.0007404, allocations: 89.33 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003099, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2143, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002928/0.2173, allocations: 2.951 MB / 377.5 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009328/0.2183, allocations: 0.7554 MB / 378.3 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.2184, allocations: 5.844 kB / 378.3 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.2186, allocations: 49.73 kB / 378.3 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.2187, allocations: 113.9 kB / 378.4 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.219, allocations: 77.5 kB / 378.5 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.2194, allocations: 467.9 kB / 379 MB, free: 41.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.2196, allocations: 109.2 kB / 379.1 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.2197, allocations: 158.8 kB / 379.2 MB, free: 41.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.2199, allocations: 180.2 kB / 379.4 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.22, allocations: 20.47 kB / 379.4 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.2201, allocations: 24.56 kB / 379.4 MB, free: 41.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.399e-05/0.2201, allocations: 68.92 kB / 379.5 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.481e-05/0.2202, allocations: 102.5 kB / 379.6 MB, free: 41.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.2204, allocations: 355.1 kB / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2205, allocations: 0 / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2205, allocations: 0 / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.2205, allocations: 1.344 kB / 380 MB, free: 41.34 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.0008519/0.2213, allocations: 0.6591 MB / 380.6 MB, free: 40.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2214, allocations: 8.906 kB / 380.6 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.835e-05/0.2215, allocations: 51.83 kB / 380.7 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.2217, allocations: 302.6 kB / 381 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.2218, allocations: 29.14 kB / 381 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.2218, allocations: 28.94 kB / 381 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.2224, allocations: 355.8 kB / 381.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2224, allocations: 11.88 kB / 381.4 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/0.2225, allocations: 12.28 kB / 381.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.2225, allocations: 11.91 kB / 381.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.223, allocations: 277.8 kB / 381.7 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.2248, allocations: 1.431 MB / 383.1 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.2252, allocations: 231.2 kB / 383.3 MB, free: 38.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.2255, allocations: 115.8 kB / 383.5 MB, free: 38.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.2255, allocations: 2.438 kB / 383.5 MB, free: 38.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2255, allocations: 33.38 kB / 383.5 MB, free: 38.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2255, allocations: 0 / 383.5 MB, free: 38.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.00168/0.2272, allocations: 0.7232 MB / 384.2 MB, free: 38.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.2273, allocations: 58.77 kB / 384.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.2276, allocations: 306.4 kB / 384.6 MB, free: 37.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.2277, allocations: 30.67 kB / 384.6 MB, free: 37.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.2278, allocations: 203.7 kB / 384.8 MB, free: 37.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.575e-05/0.2279, allocations: 81.11 kB / 384.9 MB, free: 37.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.2279, allocations: 5.094 kB / 384.9 MB, free: 37.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.909e-05/0.228, allocations: 336.8 kB / 385.2 MB, free: 37.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.2282, allocations: 91.23 kB / 385.3 MB, free: 37.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.2284, allocations: 119.1 kB / 385.4 MB, free: 37.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.2286, allocations: 97.06 kB / 385.5 MB, free: 36.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2286, allocations: 0 / 385.5 MB, free: 36.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007403/0.2294, allocations: 376.3 kB / 385.9 MB, free: 36.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2294, allocations: 5.25 kB / 385.9 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.2294, allocations: 1.312 kB / 385.9 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.2299, allocations: 117.1 kB / 386 MB, free: 36.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2301, allocations: 38 kB / 386 MB, free: 36.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.2327, allocations: 4.454 MB / 390.5 MB, free: 32.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.2329, allocations: 24.03 kB / 390.5 MB, free: 32.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.233, allocations: 15.95 kB / 390.5 MB, free: 32.07 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.000148/0.2331, allocations: 145.8 kB / 390.7 MB, free: 31.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.2332, allocations: 35.62 kB / 390.7 MB, free: 31.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.904e-05/0.2332, allocations: 43.23 kB / 390.7 MB, free: 31.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2333, allocations: 3.938 kB / 390.8 MB, free: 31.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2333, allocations: 0 / 390.8 MB, free: 31.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2333, allocations: 4 kB / 390.8 MB, free: 31.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.2336, allocations: 377.2 kB / 391.1 MB, free: 31.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2336, allocations: 0 / 391.1 MB, free: 31.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.2337, allocations: 27.92 kB / 391.1 MB, free: 31.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002836/0.234, allocations: 114.5 kB / 391.3 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.234, allocations: 8 kB / 391.3 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.2364, allocations: 4.441 MB / 395.7 MB, free: 26.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2364, allocations: 0 / 395.7 MB, free: 26.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005072/0.2369, allocations: 414.2 kB / 396.1 MB, free: 25.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.237, allocations: 136.6 kB / 396.2 MB, free: 25.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.2371, allocations: 4 kB / 396.3 MB, free: 25.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.2373, allocations: 23.98 kB / 396.3 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.32e-05/0.2374, allocations: 27.95 kB / 396.3 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2374, allocations: 12.22 kB / 396.3 MB, free: 25.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001588/0.2376, allocations: 215.1 kB / 396.5 MB, free: 25.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2376, allocations: 0 / 396.5 MB, free: 25.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006029/0.2382, allocations: 119.7 kB / 396.6 MB, free: 25.45 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.0001144/0.2383, allocations: 99.25 kB / 396.7 MB, free: 25.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007558/0.2391, allocations: 0.5779 MB / 397.3 MB, free: 24.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2391, allocations: 0 / 397.3 MB, free: 24.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.2395, allocations: 487.9 kB / 397.8 MB, free: 24.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.2399, allocations: 65.72 kB / 397.9 MB, free: 24.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009659/0.2409, allocations: 0.7834 MB / 398.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.2411, allocations: 0.8033 MB / 399.4 MB, free: 22.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.2412, allocations: 23.44 kB / 399.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2412, allocations: 0 / 399.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of Templates: time 0.007256/0.2484, allocations: 8.263 MB / 407.7 MB, free: 14.22 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches