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.000786/0.000786, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001221/0.002007, allocations: 457.8 kB / 10.45 MB, free: 244 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.001349/0.001349, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001773/0.003123, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.9591/0.9591, allocations: 177.5 MB / 190 MB, free: 4.734 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08119/1.04, allocations: 53.87 MB / 243.9 MB, free: 14.8 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.232e-06/1.232e-06, allocations: 0 / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.187e-05/1.311e-05, allocations: 4.984 kB / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.007186/0.007199, allocations: 4.166 MB / 249.4 MB, free: 9.312 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.008826, allocations: 1.253 MB / 250.6 MB, free: 8.055 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.00902, allocations: 11.94 kB / 250.7 MB, free: 8.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.009191, allocations: 102.9 kB / 250.8 MB, free: 7.941 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00332/0.01251, allocations: 202.1 kB / 251 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.01297, allocations: 339.5 kB / 251.3 MB, free: 7.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008022/0.01377, allocations: 1.104 MB / 252.4 MB, free: 6.301 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.01403, allocations: 200.9 kB / 252.6 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006046/0.01463, allocations: 0.6891 MB / 253.3 MB, free: 5.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.01501, allocations: 367 kB / 253.6 MB, free: 5.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.01513, allocations: 116 kB / 253.7 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.01526, allocations: 120 kB / 253.9 MB, free: 4.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.01543, allocations: 167.6 kB / 254 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.01568, allocations: 255.6 kB / 254.3 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006023/0.01628, allocations: 0.6348 MB / 254.9 MB, free: 3.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.01629, allocations: 0 / 254.9 MB, free: 3.77 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01629, allocations: 0 / 254.9 MB, free: 3.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.0163, allocations: 0 / 254.9 MB, free: 3.77 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.001605/0.01791, allocations: 1.247 MB / 256.2 MB, free: 2.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.858e-05/0.01794, allocations: 16.61 kB / 256.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.01805, allocations: 100.9 kB / 256.3 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.01836, allocations: 303.5 kB / 256.6 MB, free: 2.043 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.01841, allocations: 45.69 kB / 256.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-05/0.01851, allocations: 68.38 kB / 256.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.01962, allocations: 0.962 MB / 257.6 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.01964, allocations: 192 / 257.6 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.01969, allocations: 24.38 kB / 257.7 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.01971, allocations: 19.94 kB / 257.7 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.02018, allocations: 246.7 kB / 257.9 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.02289, allocations: 2.284 MB / 260.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.02336, allocations: 304.4 kB / 260.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.02356, allocations: 158.2 kB / 260.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.02359, allocations: 12.48 kB / 260.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.02384, allocations: 222.1 kB / 260.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.683e-06/0.02384, allocations: 0 / 260.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0004296/0.02427, allocations: 341.9 kB / 261.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.0243, allocations: 63.84 kB / 261.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.02455, allocations: 462.9 kB / 261.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.02459, allocations: 37.7 kB / 261.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.02471, allocations: 333.2 kB / 262.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9e-05/0.0248, allocations: 174.5 kB / 262.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.02493, allocations: 146.5 kB / 262.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.166e-05/0.02502, allocations: 374.6 kB / 262.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.02516, allocations: 145.4 kB / 262.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005515/0.02571, allocations: 0.7358 MB / 263.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000811/0.02652, allocations: 0.5185 MB / 264.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.02653, allocations: 0 / 264.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009598/0.02749, allocations: 0.5579 MB / 264.7 MB, free: 9.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.364e-05/0.02755, allocations: 59.41 kB / 264.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.02757, allocations: 11.94 kB / 264.8 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.02759, allocations: 8 kB / 264.8 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008188/0.02841, allocations: 228 kB / 265 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.02843, allocations: 15.94 kB / 265.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000584/0.02901, allocations: 127.3 kB / 265.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/0.02908, allocations: 28 kB / 265.2 MB, free: 8.723 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.0001814/0.02926, allocations: 161.6 kB / 265.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.26e-05/0.02933, allocations: 55.89 kB / 265.4 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-05/0.02942, allocations: 69.94 kB / 265.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.02942, allocations: 7.938 kB / 265.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.02942, allocations: 3.984 kB / 265.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.02943, allocations: 3.984 kB / 265.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.03026, allocations: 0.6962 MB / 266.2 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.03026, allocations: 0 / 266.2 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.03061, allocations: 139.8 kB / 266.3 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.03067, allocations: 55.5 kB / 266.4 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.03067, allocations: 4 kB / 266.4 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.0307, allocations: 7.984 kB / 266.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.0307, allocations: 4 kB / 266.4 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.0307, allocations: 4 kB / 266.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.0312, allocations: 482.7 kB / 266.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.03125, allocations: 16 kB / 266.9 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.03147, allocations: 59.94 kB / 267 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.03155, allocations: 56.44 kB / 267 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.03157, allocations: 8 kB / 267 MB, free: 6.855 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.0317, allocations: 200.4 kB / 267.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0317, allocations: 0 / 267.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003381/0.03204, allocations: 179.7 kB / 267.4 MB, free: 6.484 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.0001162/0.03216, allocations: 107.4 kB / 267.5 MB, free: 6.371 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.03263, allocations: 0.512 MB / 268 MB, free: 5.816 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-05/0.03265, allocations: 18.56 kB / 268 MB, free: 5.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.03285, allocations: 173.7 kB / 268.2 MB, free: 5.633 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.03343, allocations: 0.9902 MB / 269.2 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.03615, allocations: 1.017 MB / 270.2 MB, free: 3.406 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.967e-05/0.03623, allocations: 126 kB / 270.3 MB, free: 3.262 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.03651, allocations: 84.59 kB / 270.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/0.03684, allocations: 201.2 kB / 270.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.03685, allocations: 8 kB / 270.6 MB, free: 2.977 MB / 266.7 MB Notification: Performance of Templates: time 0.0112/0.04804, allocations: 9.488 MB / 280.1 MB, free: 9.621 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.731608579866588]