Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009822/0.000982, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.272/1.272, allocations: 205.6 MB / 223.7 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000827/0.0008271, allocations: 90.41 kB / 272.1 MB, free: 8.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002263, allocations: 4 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2233, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002881/0.2262, allocations: 2.965 MB / 379.6 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2273, allocations: 0.7658 MB / 380.3 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.2275, allocations: 9.781 kB / 380.3 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.2276, allocations: 46.08 kB / 380.4 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.2278, allocations: 118 kB / 380.5 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.2281, allocations: 93.06 kB / 380.6 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004475/0.2285, allocations: 492.7 kB / 381.1 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.2288, allocations: 109.3 kB / 381.2 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.229, allocations: 166.9 kB / 381.3 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.2292, allocations: 184 kB / 381.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-05/0.2293, allocations: 20.47 kB / 381.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-05/0.2294, allocations: 19.81 kB / 381.6 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.678e-05/0.2294, allocations: 72.97 kB / 381.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.2296, allocations: 219 kB / 381.8 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.2299, allocations: 463.5 kB / 382.3 MB, free: 41.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.23, allocations: 7.875 kB / 382.3 MB, free: 41.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.23, allocations: 4 kB / 382.3 MB, free: 41.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.23, allocations: 1.062 kB / 382.3 MB, free: 41.26 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.0008777/0.2309, allocations: 0.6521 MB / 383 MB, free: 40.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2309, allocations: 9.719 kB / 383 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.231, allocations: 47.88 kB / 383 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.2313, allocations: 308.2 kB / 383.3 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.2313, allocations: 25.47 kB / 383.3 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.2314, allocations: 29.62 kB / 383.4 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.2319, allocations: 367.5 kB / 383.7 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.232, allocations: 1.188 kB / 383.7 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.232, allocations: 15.27 kB / 383.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.232, allocations: 7.5 kB / 383.8 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005223/0.2326, allocations: 281.8 kB / 384 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.2342, allocations: 1.434 MB / 385.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.2346, allocations: 228.7 kB / 385.7 MB, free: 38.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.2348, allocations: 111.9 kB / 385.8 MB, free: 38.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2348, allocations: 6.844 kB / 385.8 MB, free: 38.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.2348, allocations: 37.03 kB / 385.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2348, allocations: 0 / 385.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.00139/0.2362, allocations: 0.7268 MB / 386.6 MB, free: 37.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.2363, allocations: 58.03 kB / 386.6 MB, free: 37.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.2365, allocations: 302.5 kB / 386.9 MB, free: 37.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2366, allocations: 30.98 kB / 386.9 MB, free: 37.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.2367, allocations: 211 kB / 387.2 MB, free: 37.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.2367, allocations: 69.02 kB / 387.2 MB, free: 37.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.2367, allocations: 5.688 kB / 387.2 MB, free: 37.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.814e-05/0.2368, allocations: 340.1 kB / 387.6 MB, free: 37.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.237, allocations: 87.69 kB / 387.6 MB, free: 37.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.2372, allocations: 126.7 kB / 387.8 MB, free: 36.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.2375, allocations: 212.1 kB / 388 MB, free: 36.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2376, allocations: 0 / 388 MB, free: 36.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006084/0.2382, allocations: 375.6 kB / 388.3 MB, free: 36.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2382, allocations: 16 kB / 388.4 MB, free: 36.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2382, allocations: 96 / 388.4 MB, free: 36.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.2386, allocations: 122.4 kB / 388.5 MB, free: 36.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2387, allocations: 31.92 kB / 388.5 MB, free: 36.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.2411, allocations: 4.461 MB / 393 MB, free: 31.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.2413, allocations: 23.83 kB / 393 MB, free: 31.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.2414, allocations: 15.94 kB / 393 MB, free: 31.27 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 (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.0001189/0.2415, allocations: 145.9 kB / 393.2 MB, free: 31.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.2416, allocations: 31.62 kB / 393.2 MB, free: 31.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.2416, allocations: 39.27 kB / 393.2 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2416, allocations: 7.984 kB / 393.2 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2416, allocations: 0 / 393.2 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2416, allocations: 3.984 kB / 393.2 MB, free: 31.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.2419, allocations: 377.2 kB / 393.6 MB, free: 30.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2419, allocations: 0 / 393.6 MB, free: 30.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2421, allocations: 31.91 kB / 393.6 MB, free: 30.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000266/0.2423, allocations: 114.5 kB / 393.7 MB, free: 30.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.2424, allocations: 0 / 393.7 MB, free: 30.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.2447, allocations: 4.445 MB / 398.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2447, allocations: 3.984 kB / 398.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.2452, allocations: 412.2 kB / 398.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.036e-05/0.2453, allocations: 128.5 kB / 398.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.479e-05/0.2454, allocations: 8 kB / 398.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.2456, allocations: 27.97 kB / 398.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.2457, allocations: 23.91 kB / 398.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2457, allocations: 12 kB / 398.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.2458, allocations: 215.1 kB / 399 MB, free: 24.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2459, allocations: 0 / 399 MB, free: 24.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005304/0.2464, allocations: 107.8 kB / 399.1 MB, free: 24.66 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 (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.0001039/0.2465, allocations: 115.2 kB / 399.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006805/0.2472, allocations: 0.5817 MB / 399.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2472, allocations: 0 / 399.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.2476, allocations: 498.2 kB / 400.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.248, allocations: 61.48 kB / 400.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009067/0.2489, allocations: 0.7901 MB / 401.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.2491, allocations: 0.7935 MB / 401.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.2493, allocations: 31 kB / 402 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.247e-05/0.2493, allocations: 19.44 kB / 402 MB, free: 21.66 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2493, allocations: 0 / 402 MB, free: 21.66 MB / 298.7 MB Notification: Performance of Templates: time 0.007276/0.2566, allocations: 4.86 MB / 406.8 MB, free: 16.81 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches