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.0009959/0.0009959, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001241/0.001241, allocations: 150.3 kB / 24.81 MB, free: 9.285 MB / 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 0.9996/0.9996, allocations: 173.3 MB / 201.4 MB, free: 9.188 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 2.745e-06/2.745e-06, allocations: 0 / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.496e-05/3.77e-05, allocations: 2.312 kB / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005173/0.005211, allocations: 3.427 MB / 271.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.007164, allocations: 0.74 MB / 272.6 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003007/0.007464, allocations: 11.94 kB / 272.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.007684, allocations: 71.3 kB / 272.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.007996, allocations: 138.6 kB / 272.8 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003523/0.008349, allocations: 115.8 kB / 272.9 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005886/0.008937, allocations: 0.5208 MB / 273.4 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.009167, allocations: 95.67 kB / 273.5 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004067/0.009574, allocations: 283.3 kB / 273.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.009809, allocations: 155.6 kB / 273.9 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.009875, allocations: 40 kB / 274 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.009942, allocations: 40 kB / 274 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.408e-05/0.01002, allocations: 95.59 kB / 274.1 MB, free: 436 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.01016, allocations: 147.7 kB / 274.3 MB, free: 288 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.01059, allocations: 338.8 kB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.0106, allocations: 8 kB / 274.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0106, allocations: 0 / 274.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.01061, allocations: 4 kB / 274.6 MB, free: 15.93 MB / 266.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.0009656/0.01157, allocations: 0.7487 MB / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.01162, allocations: 8.031 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.01173, allocations: 72.66 kB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.01205, allocations: 256.4 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.01208, allocations: 25.03 kB / 275.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.01212, allocations: 28.38 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004786/0.01259, allocations: 364.3 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.01261, allocations: 192 / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.01264, allocations: 16.38 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.01265, allocations: 11.94 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.01286, allocations: 108.4 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.01445, allocations: 1.347 MB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.01464, allocations: 147 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.834e-05/0.0147, allocations: 57.2 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.01472, allocations: 11.94 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.01474, allocations: 41.39 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.835e-06/0.01475, allocations: 3.984 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007002/0.01545, allocations: 339.5 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.01547, allocations: 55.41 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.01563, allocations: 318.1 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.01565, allocations: 33.64 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.01576, allocations: 267.1 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.0158, allocations: 75.31 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/0.01585, allocations: 55.3 kB / 278.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.01597, allocations: 0.5195 MB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.092e-05/0.01601, allocations: 23.98 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.04e-05/0.01608, allocations: 90.38 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.0162, allocations: 114.3 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.0162, allocations: 3.938 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004023/0.0166, allocations: 256.3 kB / 279.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.01662, allocations: 7.938 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01662, allocations: 4 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001951/0.01682, allocations: 103 kB / 280.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.691e-05/0.01691, allocations: 23.98 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.01942, allocations: 6.097 MB / 286.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.01952, allocations: 19.89 kB / 286.2 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.01953, allocations: 4.094 kB / 286.2 MB, free: 3.633 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 (With_Ron_Goff_Vknee.off,With_Ron_Goff.off,Ideal.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.0001043/0.01963, allocations: 180.5 kB / 286.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/0.01967, allocations: 43.75 kB / 286.4 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.0197, allocations: 30.41 kB / 286.4 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.0197, allocations: 4 kB / 286.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.01971, allocations: 0 / 286.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.01971, allocations: 0 / 286.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.01993, allocations: 213.1 kB / 286.7 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.01993, allocations: 4 kB / 286.7 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.027e-05/0.01998, allocations: 23.92 kB / 286.7 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001969/0.02018, allocations: 98.91 kB / 286.8 MB, free: 2.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.02019, allocations: 8 kB / 286.8 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.02251, allocations: 6.086 MB / 292.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.02251, allocations: 0 / 292.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.02275, allocations: 370.3 kB / 293.2 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.02282, allocations: 47.72 kB / 293.3 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.02284, allocations: 4 kB / 293.3 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.02294, allocations: 27.98 kB / 293.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.023, allocations: 32.02 kB / 293.3 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.02301, allocations: 8 kB / 293.4 MB, free: 12.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.02311, allocations: 211 kB / 293.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02311, allocations: 0 / 293.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.02353, allocations: 119.7 kB / 293.7 MB, free: 11.73 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 9.078e-05/0.02362, allocations: 103.2 kB / 293.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.02403, allocations: 0.6454 MB / 294.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.02403, allocations: 0 / 294.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.0243, allocations: 0.601 MB / 295 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.02455, allocations: 55.39 kB / 295.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008886/0.02544, allocations: 0.5985 MB / 295.7 MB, free: 9.582 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.65e-05/0.02551, allocations: 112.5 kB / 295.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.528e-05/0.02558, allocations: 18.3 kB / 295.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.02571, allocations: 126.2 kB / 295.9 MB, free: 9.312 MB / 282.7 MB Notification: Performance of SimCode: time 7.92e-07/0.02571, allocations: 0 / 295.9 MB, free: 9.312 MB / 282.7 MB Notification: Performance of Templates: time 0.00774/0.03345, allocations: 5.299 MB / 301.2 MB, free: 4.094 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.0296091372147202]