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.001709/0.001709, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001385/0.001385, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.381/1.381, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.001495/0.001495, allocations: 51.91 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2449, allocations: 53.37 MB / 432.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005723/0.2506, allocations: 4.279 MB / 436.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.2529, allocations: 1.23 MB / 437.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.2532, allocations: 15.88 kB / 437.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.2535, allocations: 102.9 kB / 438 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.2538, allocations: 194.3 kB / 438.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.2545, allocations: 331.6 kB / 438.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2556, allocations: 1.089 MB / 439.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003404/0.256, allocations: 199.1 kB / 439.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004787/0.2564, allocations: 418.8 kB / 440.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005415/0.257, allocations: 466.2 kB / 440.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.2571, allocations: 120 kB / 440.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.2573, allocations: 116 kB / 440.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.2575, allocations: 219.4 kB / 441.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004245/0.2579, allocations: 458 kB / 441.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.2592, allocations: 1.224 MB / 442.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2592, allocations: 4 kB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2592, allocations: 0 / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2592, allocations: 3.938 kB / 442.8 MB, free: 12.54 MB / 350.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.002869/0.262, allocations: 1.195 MB / 444 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2621, allocations: 12.03 kB / 444 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.2622, allocations: 88.42 kB / 444.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007401/0.263, allocations: 432 kB / 444.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.263, allocations: 45.69 kB / 444.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.2631, allocations: 56.38 kB / 444.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.2653, allocations: 0.9723 MB / 445.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.2653, allocations: 0 / 445.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/0.2654, allocations: 27.98 kB / 445.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.2654, allocations: 16 kB / 445.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.2683, allocations: 0.9991 MB / 446.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.2735, allocations: 3.145 MB / 449.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002258/0.2757, allocations: 0.7511 MB / 450.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.2769, allocations: 423.7 kB / 450.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.429e-05/0.2769, allocations: 12.5 kB / 451 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.2781, allocations: 465.1 kB / 451.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.2781, allocations: 0 / 451.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003185/0.2813, allocations: 1.104 MB / 452.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/0.2815, allocations: 368.3 kB / 452.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009179/0.2825, allocations: 0.5732 MB / 453.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.263e-05/0.2825, allocations: 45.69 kB / 453.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.2829, allocations: 380.4 kB / 453.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.283, allocations: 178.5 kB / 454 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002749/0.2833, allocations: 134.6 kB / 454.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.2835, allocations: 382.7 kB / 454.5 MB, free: 396 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.2847, allocations: 401.7 kB / 454.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.2861, allocations: 0.6772 MB / 455.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.2884, allocations: 0.9752 MB / 456.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.2884, allocations: 7.938 kB / 456.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002964/0.2914, allocations: 1.136 MB / 457.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.048e-05/0.2914, allocations: 67.39 kB / 457.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2914, allocations: 8 kB / 457.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/0.2915, allocations: 12 kB / 457.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.2925, allocations: 216 kB / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.2925, allocations: 15.94 kB / 458 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.2935, allocations: 191.2 kB / 458.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.266e-05/0.2936, allocations: 32 kB / 458.3 MB, free: 12.41 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.0003517/0.294, allocations: 229.5 kB / 458.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.2941, allocations: 67.58 kB / 458.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.2942, allocations: 74.41 kB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.2943, allocations: 8 kB / 458.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2943, allocations: 0 / 458.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.2943, allocations: 3.984 kB / 458.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003366/0.2976, allocations: 1.637 MB / 460.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.2976, allocations: 0 / 460.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007947/0.2984, allocations: 151.8 kB / 460.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.2984, allocations: 0 / 460.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.68e-05/0.2985, allocations: 15.98 kB / 460.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.2985, allocations: 4 kB / 460.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2985, allocations: 0 / 460.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.3018, allocations: 1.311 MB / 461.8 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.302, allocations: 71.44 kB / 461.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.3021, allocations: 15.98 kB / 461.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007439/0.3028, allocations: 107.9 kB / 461.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3029, allocations: 48.3 kB / 462 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.303, allocations: 19.98 kB / 462 MB, free: 8.578 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006196/0.3036, allocations: 406.8 kB / 462.4 MB, free: 8.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3036, allocations: 0 / 462.4 MB, free: 8.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006352/0.3042, allocations: 175.8 kB / 462.6 MB, free: 8.012 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.0001742/0.3044, allocations: 122.1 kB / 462.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.307, allocations: 0.9698 MB / 463.7 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.307, allocations: 0 / 463.7 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3081, allocations: 394.3 kB / 464.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.3087, allocations: 106.2 kB / 464.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.3114, allocations: 1.287 MB / 465.4 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.3119, allocations: 0.8863 MB / 466.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.3122, allocations: 59.42 kB / 466.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3122, allocations: 0 / 466.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of Templates: time 0.01449/0.3267, allocations: 9.35 MB / 475.7 MB, free: 10.79 MB / 382.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.1551597320940346]