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.002481/0.002481, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.00254/0.00254, allocations: 149.1 kB / 24.26 MB, free: 168 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.532/1.532, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] 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 2.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.611e-05/2.815e-05, allocations: 5.828 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00548/0.005508, allocations: 3.43 MB / 270.8 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.007067, allocations: 0.7438 MB / 271.5 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.007278, allocations: 4 kB / 271.5 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.007491, allocations: 79.23 kB / 271.6 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.007793, allocations: 138.7 kB / 271.7 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.008134, allocations: 111.8 kB / 271.8 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006455/0.00878, allocations: 0.5247 MB / 272.4 MB, free: 1.691 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.009003, allocations: 95.61 kB / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004347/0.009438, allocations: 283.4 kB / 272.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.009705, allocations: 155.6 kB / 272.9 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.009781, allocations: 40 kB / 272.9 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-05/0.009874, allocations: 40 kB / 273 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.009977, allocations: 95.59 kB / 273 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.01018, allocations: 151.6 kB / 273.2 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006333/0.01082, allocations: 0.4984 MB / 273.7 MB, free: 352 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01082, allocations: 4 kB / 273.7 MB, free: 348 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01082, allocations: 3.938 kB / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.01083, allocations: 0 / 273.7 MB, free: 344 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.001349/0.01218, allocations: 0.7682 MB / 274.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.01221, allocations: 12.03 kB / 274.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.01235, allocations: 76.61 kB / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.01289, allocations: 260.3 kB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.01293, allocations: 25.03 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.83e-05/0.013, allocations: 32.38 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.01374, allocations: 447.8 kB / 275.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.01375, allocations: 192 / 275.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.01378, allocations: 12.38 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.0138, allocations: 15.94 kB / 275.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005664/0.01436, allocations: 250.4 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.01669, allocations: 1.51 MB / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.01716, allocations: 202.9 kB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.01738, allocations: 107.6 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.01741, allocations: 4 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.01745, allocations: 41.39 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.01745, allocations: 0 / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001547/0.019, allocations: 475.8 kB / 277.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.01905, allocations: 55.27 kB / 278 MB, free: 11.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004446/0.0195, allocations: 398.2 kB / 278.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.31e-05/0.01954, allocations: 29.7 kB / 278.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.01983, allocations: 275.1 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.01995, allocations: 79.34 kB / 278.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.02006, allocations: 59.31 kB / 278.8 MB, free: 10.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000292/0.02036, allocations: 0.5196 MB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.02055, allocations: 75.95 kB / 279.4 MB, free: 10.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.02078, allocations: 130.4 kB / 279.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.02121, allocations: 210.2 kB / 279.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.02121, allocations: 0 / 279.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008389/0.02205, allocations: 352.2 kB / 280 MB, free: 9.629 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.02207, allocations: 8 kB / 280.1 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.02208, allocations: 0 / 280.1 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004444/0.02252, allocations: 127 kB / 280.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.02271, allocations: 31.92 kB / 280.2 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/0.02872, allocations: 6.428 MB / 286.6 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.02897, allocations: 27.81 kB / 286.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.02899, allocations: 4 kB / 286.7 MB, free: 2.629 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.0002336/0.02922, allocations: 188.6 kB / 286.8 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.17e-05/0.0293, allocations: 39.81 kB / 286.9 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.794e-05/0.02938, allocations: 46.28 kB / 286.9 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.02938, allocations: 8.031 kB / 286.9 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.02939, allocations: 0 / 286.9 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.02939, allocations: 0 / 286.9 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004787/0.02987, allocations: 320.3 kB / 287.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.02987, allocations: 0 / 287.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.02998, allocations: 19.98 kB / 287.3 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000372/0.03035, allocations: 119.1 kB / 287.4 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.03037, allocations: 8 kB / 287.4 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005783/0.03616, allocations: 6.408 MB / 293.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.03616, allocations: 96 / 293.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007779/0.03694, allocations: 470.6 kB / 294.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.03707, allocations: 51.7 kB / 294.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.0371, allocations: 4 kB / 294.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.03732, allocations: 19.98 kB / 294.3 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.03742, allocations: 27.95 kB / 294.4 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.03744, allocations: 7.938 kB / 294.4 MB, free: 10.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003072/0.03775, allocations: 267 kB / 294.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03775, allocations: 4 kB / 294.6 MB, free: 10.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006997/0.03845, allocations: 111.8 kB / 294.7 MB, free: 10.09 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.0001749/0.03862, allocations: 111.1 kB / 294.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.03977, allocations: 0.7281 MB / 295.6 MB, free: 9.191 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.03977, allocations: 4.062 kB / 295.6 MB, free: 9.188 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008423/0.04061, allocations: 0.6442 MB / 296.2 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.04102, allocations: 56.88 kB / 296.3 MB, free: 8.434 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.04235, allocations: 0.623 MB / 296.9 MB, free: 7.773 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.04258, allocations: 194.4 kB / 297.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.04268, allocations: 22.28 kB / 297.1 MB, free: 7.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.528e-05/0.04274, allocations: 24.48 kB / 297.1 MB, free: 7.52 MB / 282.7 MB Notification: Performance of SimCode: time 1.263e-06/0.04274, allocations: 0 / 297.1 MB, free: 7.52 MB / 282.7 MB Notification: Performance of Templates: time 0.01196/0.0547, allocations: 4.995 MB / 302.1 MB, free: 2.594 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.711731633055024]