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.001361/0.001361, allocations: 89.14 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001463/0.001463, allocations: 159.2 kB / 23.95 MB, free: 4.152 MB / 14.72 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 1.479/1.479, allocations: 177 MB / 204.1 MB, free: 9.141 MB / 190.1 MB " [Timeout remaining time 178] 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.433e-06/1.433e-06, allocations: 0 / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.866e-05/2.009e-05, allocations: 2.281 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005346/0.005366, allocations: 3.842 MB / 328.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.007809, allocations: 1.181 MB / 330 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.00807, allocations: 13.38 kB / 330.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.008344, allocations: 116.6 kB / 330.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.008756, allocations: 190.5 kB / 330.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007876/0.009543, allocations: 339.9 kB / 330.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.01099, allocations: 1.116 MB / 331.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003771/0.01136, allocations: 185.2 kB / 332 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009143/0.01228, allocations: 0.603 MB / 332.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005324/0.01281, allocations: 353.2 kB / 332.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.01297, allocations: 123 kB / 333.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.01315, allocations: 118.5 kB / 333.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002535/0.0134, allocations: 223.7 kB / 333.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003918/0.01379, allocations: 320 kB / 333.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.01521, allocations: 1.295 MB / 335 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.01522, allocations: 5.094 kB / 335 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01522, allocations: 0 / 335 MB, free: 9.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.01524, allocations: 0 / 335 MB, free: 9.73 MB / 302.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.003055/0.01829, allocations: 1.196 MB / 336.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.01834, allocations: 13.36 kB / 336.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.01853, allocations: 86.58 kB / 336.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007666/0.0193, allocations: 430.4 kB / 336.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.01935, allocations: 50.48 kB / 336.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.01947, allocations: 58.97 kB / 336.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/0.02199, allocations: 1.274 MB / 338.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.02201, allocations: 5.25 kB / 338.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.0221, allocations: 23.59 kB / 338.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.02212, allocations: 19 kB / 338.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/0.02529, allocations: 0.9972 MB / 339.1 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/0.03039, allocations: 2.831 MB / 342 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.03291, allocations: 0.7316 MB / 342.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.03421, allocations: 422 kB / 343.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.081e-05/0.03426, allocations: 12.5 kB / 343.1 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001356/0.03561, allocations: 466 kB / 343.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.487e-06/0.03562, allocations: 0 / 343.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003727/0.03934, allocations: 1.101 MB / 344.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002669/0.03961, allocations: 376.3 kB / 345.1 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009061/0.04052, allocations: 0.5377 MB / 345.6 MB, free: 20 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-05/0.04061, allocations: 37.7 kB / 345.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000376/0.04099, allocations: 376.4 kB / 346 MB, free: 15.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.04121, allocations: 178.5 kB / 346.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000307/0.04152, allocations: 146.5 kB / 346.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002842/0.0418, allocations: 374.8 kB / 346.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.04329, allocations: 461.1 kB / 347.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/0.04525, allocations: 1.033 MB / 348.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.04787, allocations: 0.9715 MB / 349.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.04788, allocations: 0 / 349.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003332/0.05121, allocations: 1.19 MB / 350.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.771e-05/0.05129, allocations: 75.33 kB / 350.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.0513, allocations: 8.219 kB / 350.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.05133, allocations: 16 kB / 350.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.05242, allocations: 211.7 kB / 350.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.359e-05/0.05244, allocations: 15.94 kB / 350.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.05357, allocations: 179.3 kB / 350.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.05364, allocations: 40 kB / 350.9 MB, free: 10.35 MB / 318.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.0003456/0.05398, allocations: 229.6 kB / 351.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.0541, allocations: 63.56 kB / 351.1 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.05426, allocations: 73.88 kB / 351.2 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.05427, allocations: 4 kB / 351.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.05428, allocations: 4 kB / 351.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.05428, allocations: 0 / 351.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/0.05781, allocations: 1.452 MB / 352.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.05781, allocations: 0 / 352.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.05865, allocations: 147.8 kB / 352.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.05865, allocations: 0 / 352.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.0587, allocations: 15.98 kB / 352.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.05871, allocations: 4 kB / 352.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.05871, allocations: 0 / 352.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003744/0.06245, allocations: 1.309 MB / 354.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.06256, allocations: 67.47 kB / 354.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.06267, allocations: 12 kB / 354.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008446/0.06351, allocations: 111.9 kB / 354.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.06365, allocations: 48.42 kB / 354.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-05/0.0637, allocations: 15.98 kB / 354.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006423/0.06434, allocations: 370.8 kB / 354.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.06435, allocations: 0 / 354.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006335/0.06498, allocations: 187.7 kB / 354.9 MB, free: 6.199 MB / 318.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.0001906/0.06517, allocations: 115.2 kB / 355.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.06796, allocations: 1.021 MB / 356.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.06797, allocations: 320 / 356.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.06917, allocations: 390.6 kB / 356.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006021/0.06978, allocations: 101.4 kB / 356.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.07255, allocations: 1.2 MB / 357.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.07291, allocations: 280.4 kB / 358 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.0733, allocations: 84.66 kB / 358.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002428/0.07354, allocations: 52.48 kB / 358.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of SimCode: time 4.1e-07/0.07354, allocations: 0 / 358.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of Templates: time 0.01749/0.09104, allocations: 8.714 MB / 366.9 MB, free: 10.29 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.688313901424408]