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.001697/0.001697, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.002027/0.002027, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 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.514/1.514, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 51.92 kB / 347.7 MB, free: 9.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2796, allocations: 49.15 MB / 396.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005441/0.2851, allocations: 3.648 MB / 400.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002486/0.2876, allocations: 1.093 MB / 401.6 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003094/0.2879, allocations: 13.34 kB / 401.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.2882, allocations: 94.05 kB / 401.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003806/0.2886, allocations: 172.8 kB / 401.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006308/0.2892, allocations: 290.1 kB / 402.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008816/0.2901, allocations: 0.9599 MB / 403.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003387/0.2904, allocations: 186.4 kB / 403.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004348/0.2909, allocations: 382.1 kB / 403.7 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004606/0.2913, allocations: 388.4 kB / 404.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.2915, allocations: 113.6 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.2917, allocations: 112.6 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.2918, allocations: 207.6 kB / 404.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.2922, allocations: 351.1 kB / 404.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.2935, allocations: 1.142 MB / 406 MB, free: 3.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2935, allocations: 5.938 kB / 406 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2935, allocations: 0 / 406 MB, free: 3.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.2935, allocations: 3.938 kB / 406 MB, free: 3.977 MB / 318.1 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.002836/0.2963, allocations: 1.134 MB / 407.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2964, allocations: 13.39 kB / 407.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.2966, allocations: 82.5 kB / 407.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007712/0.2973, allocations: 388.3 kB / 407.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/0.2974, allocations: 41.8 kB / 407.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.2975, allocations: 52.84 kB / 407.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.2997, allocations: 1.131 MB / 408.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.2997, allocations: 5.375 kB / 408.8 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.469e-05/0.2997, allocations: 25.48 kB / 408.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.2998, allocations: 13.75 kB / 408.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00272/0.3025, allocations: 0.9635 MB / 409.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004233/0.3067, allocations: 2.725 MB / 412.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/0.3091, allocations: 0.7458 MB / 413.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/0.3103, allocations: 417 kB / 413.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.3103, allocations: 11.89 kB / 413.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.3115, allocations: 456.6 kB / 414.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.545e-06/0.3115, allocations: 0 / 414.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003354/0.3149, allocations: 1.093 MB / 415.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.3151, allocations: 268.5 kB / 415.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000768/0.3158, allocations: 0.5001 MB / 416 MB, free: 13.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.526e-05/0.3159, allocations: 37.98 kB / 416.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.3162, allocations: 352.6 kB / 416.4 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.3164, allocations: 175.5 kB / 416.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002902/0.3167, allocations: 140 kB / 416.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.3169, allocations: 366.2 kB / 417.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.3182, allocations: 464.5 kB / 417.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.3198, allocations: 0.9037 MB / 418.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/0.3222, allocations: 0.969 MB / 419.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3222, allocations: 1.5 kB / 419.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003123/0.3253, allocations: 1.19 MB / 420.6 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/0.3254, allocations: 64.94 kB / 420.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.3254, allocations: 6.562 kB / 420.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.897e-05/0.3254, allocations: 14.34 kB / 420.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.3265, allocations: 214.3 kB / 420.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.432e-05/0.3265, allocations: 21.97 kB / 420.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.3276, allocations: 175.8 kB / 421.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.482e-05/0.3277, allocations: 32.47 kB / 421.1 MB, free: 9.723 MB / 334.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.000366/0.3281, allocations: 225.5 kB / 421.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3282, allocations: 59.66 kB / 421.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.3284, allocations: 62.7 kB / 421.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3284, allocations: 4.75 kB / 421.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/0.3284, allocations: 7.922 kB / 421.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3284, allocations: 1.5 kB / 421.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.3319, allocations: 1.43 MB / 422.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3319, allocations: 0 / 422.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008303/0.3327, allocations: 147.8 kB / 423 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.3327, allocations: 7.938 kB / 423 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.57e-05/0.3328, allocations: 8 kB / 423.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3328, allocations: 3.984 kB / 423.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3328, allocations: 3.984 kB / 423.1 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003557/0.3364, allocations: 1.292 MB / 424.4 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.3365, allocations: 63.56 kB / 424.4 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.3366, allocations: 19.92 kB / 424.4 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007745/0.3374, allocations: 103.9 kB / 424.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.3375, allocations: 48.36 kB / 424.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.3376, allocations: 19.98 kB / 424.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005343/0.3381, allocations: 338.9 kB / 424.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3381, allocations: 0 / 424.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000732/0.3388, allocations: 179.7 kB / 425.1 MB, free: 6.137 MB / 334.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.0001892/0.339, allocations: 119.1 kB / 425.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002659/0.3417, allocations: 1.019 MB / 426.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3417, allocations: 0 / 426.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3428, allocations: 395.1 kB / 426.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.3434, allocations: 93.72 kB / 426.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3461, allocations: 1.18 MB / 427.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.3463, allocations: 263.3 kB / 428.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004093/0.3467, allocations: 76.53 kB / 428.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.347, allocations: 51.44 kB / 428.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.347, allocations: 0 / 428.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of Templates: time 0.0167/0.3637, allocations: 8.913 MB / 437.2 MB, free: 9.93 MB / 350.1 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: 5.0273735001683235]