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.001885/0.001885, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002562/0.002562, allocations: 211.2 kB / 23.73 MB, free: 4.387 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001755/0.001755, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2518, allocations: 53.38 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006928/0.2587, allocations: 3.806 MB / 435.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2609, allocations: 1.191 MB / 436.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.2611, allocations: 15.94 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.2613, allocations: 106.9 kB / 436.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.2617, allocations: 182.3 kB / 436.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006189/0.2623, allocations: 339.5 kB / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.2634, allocations: 1.089 MB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000327/0.2637, allocations: 190.7 kB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004304/0.2641, allocations: 402.9 kB / 438.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004829/0.2646, allocations: 418.1 kB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.2648, allocations: 120 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.2649, allocations: 120 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.2651, allocations: 219.4 kB / 439.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003521/0.2655, allocations: 370.5 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.2666, allocations: 1.236 MB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.2666, allocations: 0 / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2666, allocations: 0 / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.2666, allocations: 0 / 441.3 MB, free: 12.93 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.002705/0.2693, allocations: 1.202 MB / 442.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2694, allocations: 15.97 kB / 442.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.2695, allocations: 84.42 kB / 442.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006984/0.2702, allocations: 428 kB / 443.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.2703, allocations: 41.69 kB / 443.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.2704, allocations: 60.38 kB / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.2726, allocations: 1.277 MB / 444.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.2726, allocations: 0 / 444.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.908e-05/0.2727, allocations: 27.98 kB / 444.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.2727, allocations: 16 kB / 444.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.2756, allocations: 0.999 MB / 445.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.2806, allocations: 2.83 MB / 448.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.283, allocations: 0.7355 MB / 449.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.2843, allocations: 421.8 kB / 449.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.2844, allocations: 16.38 kB / 449.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.2856, allocations: 469 kB / 449.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.2856, allocations: 0 / 449.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003473/0.2891, allocations: 1.092 MB / 451 MB, free: 2.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002893/0.2894, allocations: 372.3 kB / 451.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008136/0.2902, allocations: 0.5493 MB / 451.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.276e-05/0.2903, allocations: 37.7 kB / 452 MB, free: 1.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.2907, allocations: 380.3 kB / 452.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2909, allocations: 178.5 kB / 452.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000279/0.2912, allocations: 138.6 kB / 452.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.2914, allocations: 370.8 kB / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.2926, allocations: 461.1 kB / 453.5 MB, free: 320 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.2943, allocations: 1.036 MB / 454.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002398/0.2967, allocations: 0.9752 MB / 455.5 MB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.2967, allocations: 0 / 455.5 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003026/0.2997, allocations: 1.198 MB / 456.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.528e-05/0.2998, allocations: 71.39 kB / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.2998, allocations: 4 kB / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/0.2999, allocations: 12 kB / 456.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.3009, allocations: 219.9 kB / 457 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.784e-05/0.3009, allocations: 12 kB / 457 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.3019, allocations: 191.2 kB / 457.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.302, allocations: 35.94 kB / 457.2 MB, free: 12.22 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.0003856/0.3024, allocations: 221.6 kB / 457.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3025, allocations: 63.56 kB / 457.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.3026, allocations: 73.94 kB / 457.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3026, allocations: 7.984 kB / 457.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3026, allocations: 4 kB / 457.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3027, allocations: 0 / 457.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/0.306, allocations: 1.45 MB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.306, allocations: 0 / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.3068, allocations: 147.8 kB / 459.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.878e-06/0.3068, allocations: 8 kB / 459.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.3068, allocations: 11.98 kB / 459.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.3068, allocations: 7.938 kB / 459.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3068, allocations: 0 / 459.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003626/0.3105, allocations: 1.3 MB / 460.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.3106, allocations: 67.53 kB / 460.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.3107, allocations: 15.94 kB / 460.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000794/0.3115, allocations: 103.8 kB / 460.7 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.3116, allocations: 52.42 kB / 460.7 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.992e-05/0.3117, allocations: 15.98 kB / 460.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000722/0.3124, allocations: 362.8 kB / 461.1 MB, free: 8.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3124, allocations: 4 kB / 461.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006682/0.3131, allocations: 187.7 kB / 461.3 MB, free: 8.074 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.0001803/0.3133, allocations: 123 kB / 461.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002814/0.3161, allocations: 1.023 MB / 462.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3161, allocations: 3.938 kB / 462.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.3173, allocations: 395.3 kB / 462.8 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000589/0.3179, allocations: 90.27 kB / 462.9 MB, free: 6.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.3207, allocations: 1.247 MB / 464.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.3211, allocations: 284.4 kB / 464.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005199/0.3217, allocations: 76.66 kB / 464.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.3219, allocations: 55.42 kB / 464.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3219, allocations: 4 kB / 464.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of Templates: time 0.01723/0.3391, allocations: 9.511 MB / 474.1 MB, free: 11.32 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/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: 4.882002158090472]