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.001301/0.001301, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00145/0.00145, allocations: 194 kB / 23.71 MB, free: 4.406 MB / 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.474/1.474, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001642/0.001642, allocations: 51.92 kB / 370.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2678, allocations: 52.17 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005761/0.2735, allocations: 3.808 MB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.2761, allocations: 1.145 MB / 428 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.2764, allocations: 15.94 kB / 428 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.2767, allocations: 102.9 kB / 428.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003926/0.2771, allocations: 186.3 kB / 428.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007567/0.2778, allocations: 335.5 kB / 428.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.279, allocations: 1.101 MB / 429.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.2793, allocations: 181.6 kB / 429.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.2798, allocations: 410.8 kB / 430.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005306/0.2803, allocations: 410.2 kB / 430.7 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001667/0.2805, allocations: 120 kB / 430.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.2807, allocations: 116 kB / 431 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.2809, allocations: 227.3 kB / 431.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003972/0.2813, allocations: 366.5 kB / 431.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.2826, allocations: 1.234 MB / 432.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2826, allocations: 0 / 432.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2826, allocations: 0 / 432.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.2826, allocations: 4 kB / 432.8 MB, free: 4.703 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.003049/0.2856, allocations: 1.206 MB / 434 MB, free: 3.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.2857, allocations: 8.031 kB / 434 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.2859, allocations: 88.42 kB / 434.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.2867, allocations: 432 kB / 434.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.353e-05/0.2867, allocations: 45.69 kB / 434.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.2868, allocations: 56.38 kB / 434.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/0.2893, allocations: 1.273 MB / 435.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.2893, allocations: 0 / 435.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.2894, allocations: 31.98 kB / 435.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.2894, allocations: 16 kB / 435.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003086/0.2925, allocations: 1.003 MB / 436.9 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005225/0.2977, allocations: 2.822 MB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/0.3002, allocations: 0.7266 MB / 440.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.3014, allocations: 431.7 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.467e-05/0.3015, allocations: 16.36 kB / 440.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00131/0.3028, allocations: 465 kB / 441.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.846e-06/0.3028, allocations: 0 / 441.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003478/0.3063, allocations: 1.084 MB / 442.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000241/0.3065, allocations: 380.3 kB / 442.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008683/0.3074, allocations: 0.5415 MB / 443.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.3074, allocations: 37.7 kB / 443.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.3078, allocations: 376.4 kB / 443.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.3081, allocations: 182.5 kB / 443.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.3083, allocations: 134.6 kB / 444.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.3085, allocations: 370.8 kB / 444.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.3099, allocations: 461.1 kB / 444.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.3116, allocations: 1.04 MB / 445.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.3141, allocations: 0.9751 MB / 446.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.3141, allocations: 4 kB / 446.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003216/0.3173, allocations: 1.197 MB / 448.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.616e-05/0.3174, allocations: 66.22 kB / 448.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.3174, allocations: 8 kB / 448.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/0.3175, allocations: 8 kB / 448.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.3185, allocations: 223.9 kB / 448.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.3185, allocations: 8 kB / 448.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.3197, allocations: 187.3 kB / 448.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.138e-05/0.3198, allocations: 28 kB / 448.6 MB, free: 4.02 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.0003927/0.3202, allocations: 225.6 kB / 448.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3203, allocations: 75.52 kB / 448.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.3204, allocations: 69.88 kB / 449 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.3204, allocations: 11.98 kB / 449 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3204, allocations: 0 / 449 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3204, allocations: 0 / 449 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003391/0.3238, allocations: 1.45 MB / 450.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3238, allocations: 0 / 450.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008034/0.3246, allocations: 147.8 kB / 450.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.3247, allocations: 4 kB / 450.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.595e-05/0.3247, allocations: 15.98 kB / 450.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3247, allocations: 0 / 450.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3247, allocations: 3.938 kB / 450.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.3281, allocations: 1.307 MB / 451.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.3283, allocations: 71.58 kB / 452 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3284, allocations: 12 kB / 452 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007801/0.3292, allocations: 107.9 kB / 452.1 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3293, allocations: 52.34 kB / 452.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.33e-05/0.3293, allocations: 16 kB / 452.2 MB, free: 404 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006563/0.33, allocations: 362.8 kB / 452.5 MB, free: 44 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.33, allocations: 3.938 kB / 452.5 MB, free: 40 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006717/0.3307, allocations: 187.7 kB / 452.7 MB, free: 15.86 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.000181/0.3309, allocations: 119.1 kB / 452.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00274/0.3336, allocations: 1.023 MB / 453.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.3336, allocations: 4 kB / 453.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.3348, allocations: 399.3 kB / 454.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007411/0.3355, allocations: 86.22 kB / 454.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.3386, allocations: 1.254 MB / 455.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.3389, allocations: 284.4 kB / 455.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000427/0.3393, allocations: 80.66 kB / 455.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.3395, allocations: 59.42 kB / 456 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3395, allocations: 0 / 456 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01702/0.3565, allocations: 9.453 MB / 465.5 MB, free: 3.145 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.901452373713255]