Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009707/0.0009707, allocations: 83.89 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.033/1.033, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.076e-05/2.268e-05, allocations: 6.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003265/0.003288, allocations: 3.466 MB / 271.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009867/0.004275, allocations: 0.7439 MB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.004408, allocations: 7.938 kB / 272.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.004575, allocations: 71.3 kB / 272.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.004754, allocations: 138.6 kB / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.005049, allocations: 119.8 kB / 272.5 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.005469, allocations: 0.5169 MB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.00567, allocations: 95.67 kB / 273.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.005972, allocations: 283.3 kB / 273.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.006162, allocations: 155.6 kB / 273.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.006218, allocations: 40 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.891e-05/0.006267, allocations: 40 kB / 273.7 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.006334, allocations: 95.59 kB / 273.8 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.006467, allocations: 155.7 kB / 273.9 MB, free: 492 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.006822, allocations: 330.7 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.006824, allocations: 0 / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006825, allocations: 4 kB / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.006832, allocations: 0 / 274.2 MB, free: 156 kB / 250.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.0007998/0.007631, allocations: 0.7489 MB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.007673, allocations: 8.031 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.769e-05/0.007771, allocations: 76.66 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.008057, allocations: 256.4 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.008078, allocations: 25.03 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.666e-05/0.008114, allocations: 32.38 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000412/0.008526, allocations: 384.4 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.008539, allocations: 4.188 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.008564, allocations: 12.38 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.008578, allocations: 11.94 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.008808, allocations: 135.8 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.0101, allocations: 1.386 MB / 277.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002455/0.01034, allocations: 175 kB / 277.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.587e-05/0.01044, allocations: 59.66 kB / 277.5 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.01047, allocations: 7.938 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.0105, allocations: 37.39 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.0105, allocations: 0 / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008254/0.01133, allocations: 375 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.01136, allocations: 51.41 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.01159, allocations: 334.2 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.01161, allocations: 33.7 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.01174, allocations: 259.1 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.416e-05/0.01181, allocations: 79.33 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.37e-05/0.01188, allocations: 55.31 kB / 278.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.01205, allocations: 0.504 MB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-05/0.01212, allocations: 35.97 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.01223, allocations: 98.34 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.01241, allocations: 134.3 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01241, allocations: 0 / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003787/0.01279, allocations: 276.2 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.0128, allocations: 4 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.01281, allocations: 0 / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002658/0.01307, allocations: 110.9 kB / 279.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.01318, allocations: 31.97 kB / 279.9 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003169/0.01635, allocations: 6.178 MB / 286.1 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.086e-05/0.01644, allocations: 27.92 kB / 286.1 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.01645, allocations: 8 kB / 286.1 MB, free: 3.523 MB / 266.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.0001086/0.01656, allocations: 168.5 kB / 286.3 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.01661, allocations: 39.81 kB / 286.3 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.416e-05/0.01665, allocations: 38.41 kB / 286.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.01665, allocations: 0 / 286.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.01665, allocations: 4 kB / 286.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.01666, allocations: 3.984 kB / 286.4 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.01689, allocations: 264.3 kB / 286.6 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01689, allocations: 4.125 kB / 286.6 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.01694, allocations: 20.08 kB / 286.7 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001954/0.01713, allocations: 110.9 kB / 286.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.01715, allocations: 0 / 286.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/0.01997, allocations: 6.17 MB / 292.9 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01997, allocations: 192 / 292.9 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.02029, allocations: 382.4 kB / 293.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/0.02036, allocations: 51.72 kB / 293.4 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.02037, allocations: 8 kB / 293.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.02048, allocations: 24.05 kB / 293.4 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.02055, allocations: 27.95 kB / 293.4 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.02056, allocations: 15.86 kB / 293.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.02069, allocations: 223 kB / 293.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02069, allocations: 0 / 293.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004317/0.02112, allocations: 119.7 kB / 293.8 MB, free: 11.43 MB / 282.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.0001019/0.02122, allocations: 103.2 kB / 293.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.02179, allocations: 0.6647 MB / 294.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.02179, allocations: 0 / 294.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.0221, allocations: 0.5985 MB / 295.1 MB, free: 9.945 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.02237, allocations: 56.88 kB / 295.2 MB, free: 9.891 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.02348, allocations: 0.6062 MB / 295.8 MB, free: 9.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.258e-05/0.02357, allocations: 112.5 kB / 295.9 MB, free: 9.121 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.216e-05/0.02365, allocations: 22.33 kB / 295.9 MB, free: 9.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.69e-05/0.02369, allocations: 20.5 kB / 295.9 MB, free: 9.082 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02369, allocations: 0 / 295.9 MB, free: 9.082 MB / 282.7 MB Notification: Performance of Templates: time 0.007551/0.03125, allocations: 5.005 MB / 300.9 MB, free: 4.145 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2324820291250944]