Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001719/0.001719, allocations: 96.3 kB / 21.73 MB, free: 2.824 MB / 18.57 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.001856/0.001856, allocations: 165.8 kB / 25.02 MB, free: 8.777 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 250.4 MB, free: 3.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.964e-05/3.154e-05, allocations: 2.312 kB / 250.4 MB, free: 3.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00633/0.006361, allocations: 3.652 MB / 254 MB, free: 124 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.009325, allocations: 1.095 MB / 255.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003407/0.009666, allocations: 12 kB / 255.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.009957, allocations: 91.03 kB / 255.2 MB, free: 14.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004665/0.01042, allocations: 186.3 kB / 255.4 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.01116, allocations: 291.5 kB / 255.7 MB, free: 14.45 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.01233, allocations: 0.9951 MB / 256.7 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/0.01275, allocations: 175.1 kB / 256.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008102/0.01356, allocations: 0.5499 MB / 257.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005286/0.01409, allocations: 335.1 kB / 257.7 MB, free: 12.39 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.01426, allocations: 112 kB / 257.8 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.01442, allocations: 116 kB / 257.9 MB, free: 12.17 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003604/0.01478, allocations: 215.4 kB / 258.2 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.01516, allocations: 303.3 kB / 258.4 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001414/0.01657, allocations: 1.212 MB / 259.7 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.01658, allocations: 0 / 259.7 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.01658, allocations: 0 / 259.7 MB, free: 10.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.01659, allocations: 4 kB / 259.7 MB, free: 10.45 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003175/0.01977, allocations: 1.128 MB / 260.8 MB, free: 9.273 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.01983, allocations: 11.98 kB / 260.8 MB, free: 9.262 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.02014, allocations: 124.4 kB / 260.9 MB, free: 9.141 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007491/0.02089, allocations: 391.5 kB / 261.3 MB, free: 8.734 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.776e-05/0.02096, allocations: 41.69 kB / 261.3 MB, free: 8.691 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.0211, allocations: 60.38 kB / 261.4 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.02368, allocations: 1.13 MB / 262.5 MB, free: 7.391 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.0237, allocations: 192 / 262.5 MB, free: 7.391 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.55e-05/0.02378, allocations: 27.94 kB / 262.6 MB, free: 7.363 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.02381, allocations: 12 kB / 262.6 MB, free: 7.352 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002999/0.02681, allocations: 0.964 MB / 263.5 MB, free: 6.387 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005322/0.03213, allocations: 2.749 MB / 266.3 MB, free: 3.523 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/0.03461, allocations: 0.7449 MB / 267 MB, free: 2.773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.03587, allocations: 418 kB / 267.4 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.03592, allocations: 16.48 kB / 267.5 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001338/0.03726, allocations: 465.9 kB / 267.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 3.056e-06/0.03727, allocations: 4 kB / 267.9 MB, free: 1.871 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0036/0.04087, allocations: 1.106 MB / 269 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00022/0.04109, allocations: 265.5 kB / 269.3 MB, free: 452 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009064/0.04199, allocations: 0.5017 MB / 269.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.494e-05/0.04207, allocations: 37.7 kB / 269.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003557/0.04242, allocations: 348.6 kB / 270.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.04262, allocations: 174.5 kB / 270.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.04292, allocations: 134.6 kB / 270.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002454/0.04316, allocations: 374.7 kB / 270.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.04449, allocations: 457.1 kB / 271.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.04635, allocations: 0.9043 MB / 272.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002621/0.04897, allocations: 0.9754 MB / 273.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.04897, allocations: 4 kB / 273.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003394/0.05237, allocations: 1.217 MB / 274.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.358e-05/0.05245, allocations: 71.33 kB / 274.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.05247, allocations: 12 kB / 274.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.206e-05/0.05251, allocations: 8 kB / 274.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.05361, allocations: 220.1 kB / 274.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.05363, allocations: 11.94 kB / 274.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.05477, allocations: 179.3 kB / 274.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-05/0.05485, allocations: 32 kB / 274.9 MB, free: 10.46 MB / 266.7 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.0003658/0.05522, allocations: 217.5 kB / 275.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.05538, allocations: 75.61 kB / 275.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.05555, allocations: 65.52 kB / 275.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.05556, allocations: 8 kB / 275.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.05557, allocations: 0 / 275.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.05558, allocations: 3.984 kB / 275.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/0.05914, allocations: 1.425 MB / 276.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.05915, allocations: 3.984 kB / 276.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008439/0.06, allocations: 147.8 kB / 276.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.06, allocations: 4 kB / 276.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.06005, allocations: 12 kB / 276.8 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.06006, allocations: 0 / 276.8 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.06006, allocations: 7.938 kB / 276.9 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/0.06396, allocations: 1.306 MB / 278.2 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.06415, allocations: 71.5 kB / 278.2 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.06426, allocations: 12 kB / 278.2 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007992/0.06506, allocations: 103.8 kB / 278.3 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.06527, allocations: 56.42 kB / 278.4 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.662e-05/0.06535, allocations: 19.98 kB / 278.4 MB, free: 6.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006264/0.06597, allocations: 338.9 kB / 278.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.06597, allocations: 0 / 278.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006896/0.06666, allocations: 171.8 kB / 278.9 MB, free: 6.379 MB / 266.7 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.0001865/0.06685, allocations: 111.2 kB / 279 MB, free: 6.258 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00306/0.06991, allocations: 1.024 MB / 280.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.06991, allocations: 0 / 280.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.07115, allocations: 399.5 kB / 280.4 MB, free: 4.805 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007119/0.07186, allocations: 105.9 kB / 280.5 MB, free: 4.703 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.07455, allocations: 1.137 MB / 281.7 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.07487, allocations: 263.3 kB / 281.9 MB, free: 3.258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.07528, allocations: 76.53 kB / 282 MB, free: 3.184 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.07551, allocations: 52.5 kB / 282.1 MB, free: 3.133 MB / 266.7 MB Notification: Performance of SimCode: time 2.284e-06/0.07552, allocations: 3.938 kB / 282.1 MB, free: 3.129 MB / 266.7 MB Notification: Performance of Templates: time 0.01791/0.09343, allocations: 8.251 MB / 290.3 MB, free: 10.89 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.9346875039627776]