Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 112.2 kB / 21.94 MB, free: 12 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00244/0.00244, allocations: 200.8 kB / 25.24 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 207.6 MB / 236 MB, free: 10.87 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 55.92 kB / 348.5 MB, free: 9.586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.332, allocations: 49.16 MB / 397.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004986/0.337, allocations: 4.062 MB / 401.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.3394, allocations: 1.13 MB / 402.8 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003568/0.3397, allocations: 8.875 kB / 402.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.34, allocations: 97.66 kB / 402.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004033/0.3404, allocations: 172.4 kB / 403.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006762/0.3411, allocations: 284.4 kB / 403.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009617/0.3421, allocations: 0.9688 MB / 404.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.3424, allocations: 195.5 kB / 404.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004136/0.3428, allocations: 390.5 kB / 404.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005076/0.3434, allocations: 449.7 kB / 405.4 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.3435, allocations: 112.3 kB / 405.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.3437, allocations: 113.6 kB / 405.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.3439, allocations: 200.8 kB / 405.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003671/0.3442, allocations: 419.4 kB / 406.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.3455, allocations: 1.147 MB / 407.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3455, allocations: 0 / 407.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3455, allocations: 0 / 407.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.3456, allocations: 1.688 kB / 407.3 MB, free: 3.492 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002869/0.3484, allocations: 1.129 MB / 408.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3485, allocations: 17.14 kB / 408.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.3486, allocations: 85.97 kB / 408.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006402/0.3493, allocations: 385.9 kB / 409 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.3493, allocations: 41.58 kB / 409 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.3494, allocations: 56.81 kB / 409.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.3514, allocations: 0.9301 MB / 410 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.3515, allocations: 5.125 kB / 410 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-05/0.3515, allocations: 22.41 kB / 410 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.3515, allocations: 14.16 kB / 410 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002616/0.3542, allocations: 0.9805 MB / 411 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004763/0.3589, allocations: 3.003 MB / 414 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.3612, allocations: 0.7387 MB / 414.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.3624, allocations: 421.9 kB / 415.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.3624, allocations: 19.06 kB / 415.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.3636, allocations: 460.8 kB / 415.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.266e-06/0.3636, allocations: 0 / 415.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003431/0.367, allocations: 1.086 MB / 416.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002047/0.3673, allocations: 276.1 kB / 417 MB, free: 13.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008983/0.3682, allocations: 0.5005 MB / 417.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.275e-05/0.3682, allocations: 38.89 kB / 417.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003219/0.3686, allocations: 340.4 kB / 417.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.3688, allocations: 179.6 kB / 418 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002772/0.3691, allocations: 142.3 kB / 418.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.3693, allocations: 367.6 kB / 418.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3705, allocations: 402 kB / 418.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.3719, allocations: 0.6445 MB / 419.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/0.3743, allocations: 0.9675 MB / 420.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3743, allocations: 1.031 kB / 420.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00298/0.3773, allocations: 1.137 MB / 421.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.814e-05/0.3774, allocations: 60.72 kB / 421.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.3774, allocations: 6.688 kB / 421.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/0.3774, allocations: 9.719 kB / 421.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.3785, allocations: 231.2 kB / 422 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.236e-05/0.3785, allocations: 13.16 kB / 422 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.3796, allocations: 180.5 kB / 422.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.3797, allocations: 32.78 kB / 422.2 MB, free: 9.66 MB / 334.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.000366/0.3801, allocations: 212.7 kB / 422.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3802, allocations: 63.62 kB / 422.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.3803, allocations: 59.5 kB / 422.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3803, allocations: 17.05 kB / 422.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3803, allocations: 5.281 kB / 422.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3803, allocations: 0 / 422.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.3839, allocations: 1.617 MB / 424.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3839, allocations: 3.938 kB / 424.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/0.3846, allocations: 147.8 kB / 424.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3846, allocations: 4 kB / 424.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.754e-05/0.3847, allocations: 12 kB / 424.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.3847, allocations: 4 kB / 424.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3847, allocations: 4 kB / 424.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.388, allocations: 1.288 MB / 425.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.3881, allocations: 63.58 kB / 425.7 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.967e-05/0.3882, allocations: 12 kB / 425.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007449/0.389, allocations: 107.9 kB / 425.8 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.3891, allocations: 52.3 kB / 425.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/0.3892, allocations: 19.98 kB / 425.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005678/0.3897, allocations: 346.9 kB / 426.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3897, allocations: 0 / 426.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006671/0.3904, allocations: 171.8 kB / 426.4 MB, free: 5.93 MB / 334.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.0001755/0.3906, allocations: 123.2 kB / 426.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.3931, allocations: 0.9613 MB / 427.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3931, allocations: 0 / 427.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.3942, allocations: 395.1 kB / 427.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.3947, allocations: 89.72 kB / 427.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3973, allocations: 1.224 MB / 429.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/0.3978, allocations: 0.8588 MB / 430 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.3981, allocations: 59.42 kB / 430.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3981, allocations: 0 / 430.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of Templates: time 0.01448/0.4126, allocations: 8.7 MB / 438.8 MB, free: 9.43 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 8.264094498939812]