Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007803/0.0007803, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001035/0.001815, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000706/0.000706, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008562/0.001562, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.904/0.904, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1053/1.009, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.551e-05/1.711e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004326/0.004343, allocations: 4.162 MB / 249.2 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.006278, allocations: 1.253 MB / 250.4 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.006502, allocations: 11.94 kB / 250.5 MB, free: 8.176 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.006685, allocations: 106.8 kB / 250.6 MB, free: 8.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003153/0.007, allocations: 202.1 kB / 250.8 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.007498, allocations: 335.5 kB / 251.1 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008477/0.008346, allocations: 1.1 MB / 252.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.008672, allocations: 196.9 kB / 252.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006607/0.009333, allocations: 0.6891 MB / 253.1 MB, free: 5.551 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003869/0.00972, allocations: 367.1 kB / 253.4 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.00984, allocations: 116 kB / 253.5 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.009964, allocations: 120 kB / 253.7 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.0101, allocations: 167.6 kB / 253.8 MB, free: 4.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.01034, allocations: 259.5 kB / 254.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007526/0.0111, allocations: 0.6348 MB / 254.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.719e-05/0.01111, allocations: 0 / 254.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.01111, allocations: 0 / 254.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.01114, allocations: 0 / 254.7 MB, free: 3.906 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.001655/0.01279, allocations: 1.247 MB / 256 MB, free: 2.617 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.01282, allocations: 12.62 kB / 256 MB, free: 2.605 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.01297, allocations: 104.8 kB / 256.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.01337, allocations: 303.5 kB / 256.4 MB, free: 2.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.01341, allocations: 49.67 kB / 256.4 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.8e-05/0.01349, allocations: 60.38 kB / 256.5 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009505/0.01444, allocations: 0.962 MB / 257.4 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.01445, allocations: 4.188 kB / 257.4 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.0145, allocations: 24.38 kB / 257.5 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.01452, allocations: 19.94 kB / 257.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006503/0.01517, allocations: 238.7 kB / 257.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002496/0.01766, allocations: 2.284 MB / 260 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005956/0.01826, allocations: 304.4 kB / 260.3 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.01851, allocations: 154.3 kB / 260.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.01856, allocations: 12.48 kB / 260.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/0.01888, allocations: 226.1 kB / 260.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.555e-06/0.01889, allocations: 4 kB / 260.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0005544/0.01944, allocations: 341.9 kB / 261 MB, free: 13.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.01948, allocations: 55.91 kB / 261.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.01982, allocations: 474.9 kB / 261.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.01986, allocations: 37.7 kB / 261.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.02003, allocations: 329.2 kB / 261.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.02014, allocations: 170.5 kB / 262.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.02031, allocations: 142.5 kB / 262.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.02042, allocations: 374.6 kB / 262.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.02061, allocations: 153.4 kB / 262.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004262/0.02104, allocations: 0.7319 MB / 263.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.02152, allocations: 0.4951 MB / 263.9 MB, free: 9.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.02152, allocations: 4 kB / 263.9 MB, free: 9.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008929/0.02241, allocations: 0.558 MB / 264.5 MB, free: 9.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.181e-05/0.02247, allocations: 63.41 kB / 264.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.02248, allocations: 7.938 kB / 264.6 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.02249, allocations: 12 kB / 264.6 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006514/0.02314, allocations: 223.9 kB / 264.8 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.02316, allocations: 15.94 kB / 264.8 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.02358, allocations: 127.4 kB / 264.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.23e-05/0.02362, allocations: 24 kB / 265 MB, free: 8.887 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.0001638/0.02379, allocations: 171 kB / 265.1 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.409e-05/0.02386, allocations: 55.89 kB / 265.2 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.782e-05/0.02396, allocations: 73.94 kB / 265.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.02396, allocations: 4 kB / 265.3 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.02397, allocations: 0 / 265.3 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.02397, allocations: 3.984 kB / 265.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009422/0.02492, allocations: 0.6923 MB / 266 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.02492, allocations: 0 / 266 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.02537, allocations: 135.8 kB / 266.1 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.02543, allocations: 55.5 kB / 266.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.02543, allocations: 0 / 266.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.02546, allocations: 15.98 kB / 266.2 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.02546, allocations: 0 / 266.2 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.02547, allocations: 4 kB / 266.2 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.02606, allocations: 482.7 kB / 266.6 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/0.02613, allocations: 12 kB / 266.7 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.02642, allocations: 59.94 kB / 266.7 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.02651, allocations: 48.41 kB / 266.8 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.02654, allocations: 12 kB / 266.8 MB, free: 7.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001675/0.0267, allocations: 212.3 kB / 267 MB, free: 6.824 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0267, allocations: 0 / 267 MB, free: 6.824 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004214/0.02712, allocations: 183.7 kB / 267.2 MB, free: 6.645 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.0001169/0.02724, allocations: 96.34 kB / 267.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005445/0.02779, allocations: 0.5 MB / 267.7 MB, free: 6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-05/0.02781, allocations: 16.5 kB / 267.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.02802, allocations: 152.6 kB / 267.9 MB, free: 5.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.02844, allocations: 171.2 kB / 268.1 MB, free: 5.664 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.03194, allocations: 1.017 MB / 269.1 MB, free: 4.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.815e-05/0.03202, allocations: 126 kB / 269.2 MB, free: 4.469 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.03231, allocations: 80.66 kB / 269.3 MB, free: 4.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.03271, allocations: 213.2 kB / 269.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.03271, allocations: 0 / 269.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01973/0.05244, allocations: 9.632 MB / 279.1 MB, free: 10.69 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.575620951130986]