Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.001335/0.001335, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.001409/0.001409, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 14.72 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.471/1.471, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 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.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 51.92 kB / 371.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3017, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006622/0.3083, allocations: 3.811 MB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.3109, allocations: 1.145 MB / 428.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005459/0.3114, allocations: 11.94 kB / 428.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004098/0.3118, allocations: 102.9 kB / 428.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006687/0.3125, allocations: 186.3 kB / 429.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008811/0.3134, allocations: 339.5 kB / 429.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.3147, allocations: 1.093 MB / 430.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003618/0.3151, allocations: 187.1 kB / 430.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005192/0.3156, allocations: 406.8 kB / 431.1 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005475/0.3162, allocations: 414.2 kB / 431.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.3163, allocations: 120 kB / 431.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.3165, allocations: 116 kB / 431.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.3167, allocations: 227.4 kB / 431.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004136/0.3171, allocations: 366.5 kB / 432.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.3184, allocations: 1.237 MB / 433.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3185, allocations: 0 / 433.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3185, allocations: 0 / 433.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.3185, allocations: 0 / 433.5 MB, free: 4.723 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003008/0.3215, allocations: 1.206 MB / 434.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3215, allocations: 12.03 kB / 434.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.3217, allocations: 84.42 kB / 434.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007727/0.3225, allocations: 428 kB / 435.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/0.3225, allocations: 49.69 kB / 435.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3226, allocations: 60.38 kB / 435.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.3251, allocations: 1.27 MB / 436.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3251, allocations: 0 / 436.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.662e-05/0.3252, allocations: 28 kB / 436.7 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.3252, allocations: 19.98 kB / 436.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003093/0.3283, allocations: 0.9952 MB / 437.7 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005196/0.3335, allocations: 2.83 MB / 440.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.3359, allocations: 0.7305 MB / 441.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.3372, allocations: 413.9 kB / 441.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.229e-05/0.3372, allocations: 20.36 kB / 441.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.3385, allocations: 465 kB / 442.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.975e-06/0.3385, allocations: 4 kB / 442.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003406/0.3419, allocations: 1.084 MB / 443.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000249/0.3422, allocations: 376.3 kB / 443.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008514/0.343, allocations: 0.5415 MB / 444.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.367e-05/0.3431, allocations: 49.62 kB / 444.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.3434, allocations: 380.4 kB / 444.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.3436, allocations: 174.5 kB / 444.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002615/0.3439, allocations: 138.6 kB / 444.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.3441, allocations: 366.8 kB / 445.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.3454, allocations: 457.1 kB / 445.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.3471, allocations: 1.04 MB / 446.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/0.3496, allocations: 0.9713 MB / 447.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3496, allocations: 4 kB / 447.6 MB, free: 5.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003102/0.3527, allocations: 1.205 MB / 448.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.046e-05/0.3528, allocations: 59.41 kB / 448.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3528, allocations: 8 kB / 448.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.3528, allocations: 8 kB / 448.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.3538, allocations: 227.9 kB / 449.2 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.3539, allocations: 8 kB / 449.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.355, allocations: 183.3 kB / 449.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.226e-05/0.355, allocations: 35.98 kB / 449.4 MB, free: 4.035 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003625/0.3554, allocations: 221.5 kB / 449.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.3555, allocations: 71.52 kB / 449.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.3557, allocations: 73.94 kB / 449.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3557, allocations: 4 kB / 449.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3557, allocations: 3.984 kB / 449.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.3557, allocations: 3.984 kB / 449.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003433/0.3591, allocations: 1.45 MB / 451.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3591, allocations: 0 / 451.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007967/0.3599, allocations: 151.8 kB / 451.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.3599, allocations: 0 / 451.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.925e-05/0.36, allocations: 15.98 kB / 451.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.36, allocations: 4 kB / 451.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.36, allocations: 0 / 451.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00346/0.3634, allocations: 1.303 MB / 452.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3636, allocations: 67.58 kB / 452.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3637, allocations: 16 kB / 452.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007896/0.3645, allocations: 107.9 kB / 452.9 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.3646, allocations: 52.34 kB / 452.9 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.3647, allocations: 16 kB / 452.9 MB, free: 428 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005693/0.3652, allocations: 366.8 kB / 453.3 MB, free: 64 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3652, allocations: 0 / 453.3 MB, free: 64 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006628/0.3659, allocations: 191.7 kB / 453.5 MB, free: 15.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001774/0.3661, allocations: 115.1 kB / 453.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.3688, allocations: 1.023 MB / 454.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3688, allocations: 0 / 454.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3699, allocations: 399.2 kB / 455 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.3705, allocations: 94.38 kB / 455.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.3734, allocations: 1.283 MB / 456.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.3737, allocations: 284.3 kB / 456.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002923/0.374, allocations: 63.42 kB / 456.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.374, allocations: 0 / 456.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of Templates: time 0.01519/0.3892, allocations: 9.35 MB / 466.1 MB, free: 3.199 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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: 7.60692918067798]