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.001392/0.001392, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.001655/0.001655, allocations: 190 kB / 22.21 MB, free: 112 kB / 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.463/1.463, allocations: 225.6 MB / 250.8 MB, free: 13.39 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.001547/0.001547, allocations: 47.92 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2477, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005685/0.2534, allocations: 4.27 MB / 425.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.2555, allocations: 1.18 MB / 426.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.2558, allocations: 15.94 kB / 426.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000262/0.256, allocations: 106.9 kB / 426.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.2564, allocations: 190.2 kB / 426.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000656/0.2571, allocations: 323.5 kB / 427 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.2583, allocations: 1.101 MB / 428.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003721/0.2586, allocations: 198.6 kB / 428.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005412/0.2592, allocations: 406.8 kB / 428.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005468/0.2597, allocations: 466.2 kB / 429.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.2599, allocations: 116 kB / 429.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.26, allocations: 120 kB / 429.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.2603, allocations: 223.3 kB / 429.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000429/0.2607, allocations: 446 kB / 430 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.262, allocations: 1.227 MB / 431.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2621, allocations: 0 / 431.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2621, allocations: 0 / 431.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.2621, allocations: 0 / 431.2 MB, free: 4.727 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.002906/0.265, allocations: 1.289 MB / 432.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.265, allocations: 8.031 kB / 432.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.2652, allocations: 88.42 kB / 432.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007277/0.2659, allocations: 473.9 kB / 433.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-05/0.266, allocations: 53.67 kB / 433.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.2661, allocations: 64.33 kB / 433.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.2682, allocations: 0.9604 MB / 434.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.2682, allocations: 3.984 kB / 434.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.2683, allocations: 32 kB / 434.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.2683, allocations: 16 kB / 434.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00287/0.2712, allocations: 0.9991 MB / 435.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00529/0.2765, allocations: 3.197 MB / 438.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.2788, allocations: 0.8817 MB / 439.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.2799, allocations: 421.8 kB / 439.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.504e-05/0.28, allocations: 16.41 kB / 439.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.2812, allocations: 461.1 kB / 440.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.454e-06/0.2812, allocations: 4 kB / 440.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003188/0.2844, allocations: 1.096 MB / 441.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002285/0.2846, allocations: 372.3 kB / 441.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008947/0.2855, allocations: 0.581 MB / 442.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.207e-05/0.2856, allocations: 37.7 kB / 442.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000322/0.2859, allocations: 372.5 kB / 442.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.2861, allocations: 178.5 kB / 442.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.2863, allocations: 138.6 kB / 442.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.2865, allocations: 382.8 kB / 443.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.2877, allocations: 397.7 kB / 443.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001594/0.2893, allocations: 0.6888 MB / 444.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/0.2916, allocations: 0.9739 MB / 445.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.2916, allocations: 0 / 445.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003003/0.2946, allocations: 1.142 MB / 446.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/0.2947, allocations: 67.34 kB / 446.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.2947, allocations: 8 kB / 446.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.2947, allocations: 12 kB / 446.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.2958, allocations: 211.7 kB / 446.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.243e-05/0.2958, allocations: 23.95 kB / 446.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.2969, allocations: 187.2 kB / 447 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.79e-05/0.2969, allocations: 35.98 kB / 447 MB, free: 4.207 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.000361/0.2973, allocations: 226.1 kB / 447.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.2974, allocations: 67.58 kB / 447.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.2976, allocations: 70.41 kB / 447.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2976, allocations: 4 kB / 447.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2976, allocations: 4 kB / 447.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2976, allocations: 7.984 kB / 447.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.3011, allocations: 1.673 MB / 449 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.3011, allocations: 3.984 kB / 449 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007916/0.3019, allocations: 147.8 kB / 449.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3019, allocations: 4 kB / 449.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.3019, allocations: 12 kB / 449.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3019, allocations: 4 kB / 449.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3019, allocations: 3.938 kB / 449.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003334/0.3053, allocations: 1.303 MB / 450.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.3054, allocations: 152.6 kB / 450.7 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3055, allocations: 12 kB / 450.7 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000757/0.3063, allocations: 103.9 kB / 450.8 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.3065, allocations: 56.31 kB / 450.8 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.632e-05/0.3065, allocations: 19.98 kB / 450.8 MB, free: 244 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006301/0.3071, allocations: 398.8 kB / 451.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3071, allocations: 0 / 451.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006369/0.3078, allocations: 179.8 kB / 451.4 MB, free: 15.68 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.0001729/0.3079, allocations: 127.2 kB / 451.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.3105, allocations: 0.9613 MB / 452.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3105, allocations: 4 kB / 452.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.3116, allocations: 387.4 kB / 452.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006272/0.3122, allocations: 106.2 kB / 453 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.3147, allocations: 1.265 MB / 454.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.3152, allocations: 0.8863 MB / 455.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004166/0.3156, allocations: 84.86 kB / 455.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3158, allocations: 55.42 kB / 455.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3158, allocations: 0 / 455.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of Templates: time 0.01693/0.3328, allocations: 9.063 MB / 464.3 MB, free: 2.723 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/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: 4.907308583147824]