Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001763/0.001763, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 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: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 47.92 kB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1008, allocations: 53.34 MB / 427.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00634/0.1072, allocations: 4.273 MB / 431.8 MB, free: 0 / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.1098, allocations: 1.207 MB / 433 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.1102, allocations: 8 kB / 433 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.1105, allocations: 110.8 kB / 433.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004295/0.1109, allocations: 190.3 kB / 433.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007092/0.1116, allocations: 327.6 kB / 433.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1128, allocations: 1.093 MB / 434.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.1131, allocations: 198.6 kB / 434.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.1137, allocations: 418.8 kB / 435.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005812/0.1143, allocations: 458.3 kB / 435.7 MB, free: 12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.1144, allocations: 120 kB / 435.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.1146, allocations: 116 kB / 436 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.1148, allocations: 227.3 kB / 436.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004565/0.1153, allocations: 450 kB / 436.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.1166, allocations: 1.222 MB / 437.9 MB, free: 9.883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1166, allocations: 7.938 kB / 437.9 MB, free: 9.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1166, allocations: 4 kB / 437.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.1166, allocations: 0 / 437.9 MB, free: 9.871 MB / 366.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.003218/0.1198, allocations: 1.281 MB / 439.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1199, allocations: 8.031 kB / 439.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.1201, allocations: 88.42 kB / 439.2 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007577/0.1208, allocations: 481.9 kB / 439.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.1209, allocations: 45.69 kB / 439.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.121, allocations: 56.38 kB / 439.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.1234, allocations: 0.9723 MB / 440.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1234, allocations: 3.984 kB / 440.8 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.85e-05/0.1235, allocations: 24 kB / 440.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1235, allocations: 16 kB / 440.8 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003178/0.1267, allocations: 1.003 MB / 441.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005549/0.1322, allocations: 3.208 MB / 445 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/0.1348, allocations: 0.8884 MB / 445.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.1361, allocations: 421.8 kB / 446.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-05/0.1362, allocations: 16.48 kB / 446.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001312/0.1375, allocations: 461.1 kB / 446.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 4.038e-06/0.1375, allocations: 0 / 446.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.1976/0.3351, allocations: 1.096 MB / 447.9 MB, free: 24.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.3352, allocations: 371.2 kB / 448.3 MB, free: 24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009502/0.3361, allocations: 0.5772 MB / 448.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.254e-05/0.3362, allocations: 42 kB / 448.9 MB, free: 23.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.3364, allocations: 375.3 kB / 449.3 MB, free: 23.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.3366, allocations: 180.3 kB / 449.4 MB, free: 23.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.3368, allocations: 134.8 kB / 449.6 MB, free: 23.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.154e-05/0.3369, allocations: 376.6 kB / 449.9 MB, free: 23.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.3381, allocations: 403.4 kB / 450.3 MB, free: 23.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.3395, allocations: 0.6794 MB / 451 MB, free: 22.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/0.3417, allocations: 0.9664 MB / 452 MB, free: 22.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3418, allocations: 6 kB / 452 MB, free: 22.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002991/0.3447, allocations: 1.146 MB / 453.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/0.3448, allocations: 66.59 kB / 453.2 MB, free: 22.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.3448, allocations: 6.281 kB / 453.2 MB, free: 22.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/0.3448, allocations: 10.52 kB / 453.2 MB, free: 22.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.3459, allocations: 225.6 kB / 453.4 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-05/0.3459, allocations: 15.14 kB / 453.4 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.3471, allocations: 186.9 kB / 453.6 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.462e-05/0.3472, allocations: 31.22 kB / 453.7 MB, free: 22.04 MB / 366.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.0003119/0.3475, allocations: 222.3 kB / 453.9 MB, free: 21.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.3476, allocations: 72.94 kB / 453.9 MB, free: 21.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/0.3478, allocations: 75.22 kB / 454 MB, free: 21.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.3478, allocations: 5.656 kB / 454 MB, free: 21.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.3478, allocations: 0 / 454 MB, free: 21.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3478, allocations: 2.812 kB / 454 MB, free: 21.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.3512, allocations: 1.677 MB / 455.7 MB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3512, allocations: 0 / 455.7 MB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.352, allocations: 152.9 kB / 455.8 MB, free: 20.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.352, allocations: 2.969 kB / 455.9 MB, free: 20.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.3521, allocations: 15.05 kB / 455.9 MB, free: 20.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.3521, allocations: 1.062 kB / 455.9 MB, free: 20.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3521, allocations: 1.609 kB / 455.9 MB, free: 20.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.3556, allocations: 1.303 MB / 457.2 MB, free: 20.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.3557, allocations: 149.2 kB / 457.3 MB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.3558, allocations: 13.3 kB / 457.3 MB, free: 20.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008376/0.3567, allocations: 107 kB / 457.4 MB, free: 20.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.3568, allocations: 48.22 kB / 457.5 MB, free: 20.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.952e-05/0.3569, allocations: 16.73 kB / 457.5 MB, free: 20.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006528/0.3575, allocations: 405.7 kB / 457.9 MB, free: 20.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3575, allocations: 0 / 457.9 MB, free: 20.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006984/0.3582, allocations: 183.3 kB / 458.1 MB, free: 20.05 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.0001622/0.3584, allocations: 123.8 kB / 458.2 MB, free: 19.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.361, allocations: 0.9642 MB / 459.2 MB, free: 19.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.361, allocations: 5.375 kB / 459.2 MB, free: 19.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.3622, allocations: 384.8 kB / 459.5 MB, free: 19.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.3628, allocations: 103.3 kB / 459.6 MB, free: 19.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.3653, allocations: 1.296 MB / 460.9 MB, free: 18.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3657, allocations: 0.8792 MB / 461.8 MB, free: 18.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.366, allocations: 64.77 kB / 461.9 MB, free: 17.99 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.366, allocations: 0 / 461.9 MB, free: 17.99 MB / 366.1 MB Notification: Performance of Templates: time 0.01423/0.3802, allocations: 9.354 MB / 471.2 MB, free: 14.95 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.823019728006329]